vivarium-public-health 3.0.9__tar.gz → 3.0.10__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- vivarium_public_health-3.0.10/.github/workflows/build.yml +19 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/CHANGELOG.rst +4 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/Jenkinsfile +55 -29
- {vivarium_public_health-3.0.9/src/vivarium_public_health.egg-info → vivarium_public_health-3.0.10}/PKG-INFO +1 -1
- vivarium_public_health-3.0.10/src/vivarium_public_health/__init__.py +59 -0
- vivarium_public_health-3.0.10/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/__init__.py +1 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/__init__.py +1 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10/src/vivarium_public_health.egg-info}/PKG-INFO +1 -1
- vivarium_public_health-3.0.9/.github/workflows/build.yml +0 -96
- vivarium_public_health-3.0.9/src/vivarium_public_health/__init__.py +0 -21
- vivarium_public_health-3.0.9/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.bandit +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.flake8 +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.gitattributes +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.gitignore +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.pylintrc +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.zenodo.json +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/LICENSE.txt +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/MANIFEST.in +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/Makefile +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/README.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/Makefile +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/simple_cause.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/pyproject.toml +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/setup.cfg +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/setup.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/disability.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/conftest.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/treatment/test_scale_up.py +0 -0
- {vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tox.ini +0 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
# -----------------------------------------------------------------------------
|
2
|
+
# - invoked on push, pull_request, manual trigger, or schedule
|
3
|
+
# - test under at least 3 versions of python
|
4
|
+
# -----------------------------------------------------------------------------
|
5
|
+
name: build
|
6
|
+
on:
|
7
|
+
push:
|
8
|
+
pull_request:
|
9
|
+
workflow_dispatch:
|
10
|
+
schedule:
|
11
|
+
- cron: "0 8 * * *"
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
call_build:
|
15
|
+
uses:
|
16
|
+
ihmeuw/vivarium_build_utils/.github/workflows/build.yml@main
|
17
|
+
with:
|
18
|
+
dependencies: "layered_config_tree,vivarium"
|
19
|
+
use_mypy: false
|
@@ -1,3 +1,15 @@
|
|
1
|
+
def githubUsernameToSlackName(github_author) {
|
2
|
+
// Add team members as necessary
|
3
|
+
def mapping = [
|
4
|
+
"Jim Albright": "albrja",
|
5
|
+
"Steve Bachmeier": "sbachmei",
|
6
|
+
"Hussain Jafari": "hjafari",
|
7
|
+
"Patrick Nast": "pnast",
|
8
|
+
"Rajan Mudambi": "rmudambi",
|
9
|
+
]
|
10
|
+
return mapping.get(github_author, "channel")
|
11
|
+
}
|
12
|
+
|
1
13
|
pipeline_name="vivarium_public_health"
|
2
14
|
conda_env_name="${pipeline_name}-${BUILD_NUMBER}"
|
3
15
|
conda_env_path="/tmp/${conda_env_name}"
|
@@ -190,40 +202,54 @@ pipeline {
|
|
190
202
|
} // build and deploy stage
|
191
203
|
} // stages bracket within Python matrix
|
192
204
|
post {
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
channelName = "simsci-ci-status"
|
203
|
-
} else {
|
204
|
-
channelName = "simsci-ci-status-test"
|
205
|
-
}
|
205
|
+
always {
|
206
|
+
sh "${ACTIVATE} && make clean"
|
207
|
+
sh "rm -rf ${CONDA_ENV_PATH}"
|
208
|
+
// Generate a message to send to Slack.
|
209
|
+
script {
|
210
|
+
if (env.BRANCH == "main") {
|
211
|
+
channelName = "simsci-ci-status"
|
212
|
+
} else {
|
213
|
+
channelName = "simsci-ci-status-test"
|
206
214
|
}
|
207
|
-
//
|
208
|
-
|
209
|
-
|
210
|
-
|
215
|
+
// Run git command to get the author of the last commit
|
216
|
+
developerID = sh(
|
217
|
+
script: "git log -1 --pretty=format:'%an'",
|
218
|
+
returnStdout: true
|
219
|
+
).trim()
|
220
|
+
slackID = githubUsernameToSlackName(developerID)
|
221
|
+
slackMessage = """
|
222
|
+
Job: *${env.JOB_NAME}*
|
223
|
+
Build number: #${env.BUILD_NUMBER}
|
224
|
+
Build status: *${currentBuild.result}*
|
225
|
+
Author: @${slackID}
|
226
|
+
Build details: <${env.BUILD_URL}/console|See in web console>
|
227
|
+
""".stripIndent()
|
228
|
+
}
|
229
|
+
|
230
|
+
// Delete the workspace directory.
|
231
|
+
deleteDir()
|
232
|
+
}
|
233
|
+
failure {
|
234
|
+
echo "This build triggered by ${developerID} failed on ${GIT_BRANCH}. Sending a failure message to Slack."
|
235
|
+
slackSend channel: "#${channelName}",
|
236
|
+
message: slackMessage,
|
237
|
+
teamDomain: "ihme",
|
238
|
+
tokenCredentialId: "slack"
|
239
|
+
}
|
240
|
+
success {
|
241
|
+
script {
|
242
|
+
if (params.DEBUG) {
|
243
|
+
echo 'Debug is enabled. Sending a success message to Slack.'
|
244
|
+
slackSend channel: "#${channelName}",
|
245
|
+
message: slackMessage,
|
211
246
|
teamDomain: "ihme",
|
212
247
|
tokenCredentialId: "slack"
|
213
|
-
|
214
|
-
|
215
|
-
script {
|
216
|
-
if (params.DEBUG) {
|
217
|
-
echo 'Debug is enabled. Sending a success message to Slack.'
|
218
|
-
slackSend channel: "#${params.SLACK_TO}",
|
219
|
-
message: ":white_check_mark: (debugging) JOB SUCCESS: $JOB_NAME - $BUILD_ID\n\n${BUILD_URL}console",
|
220
|
-
teamDomain: "ihme",
|
221
|
-
tokenCredentialId: "slack"
|
222
|
-
} else {
|
223
|
-
echo 'Debug is not enabled. No success message will be sent to Slack.'
|
224
|
-
}
|
248
|
+
} else {
|
249
|
+
echo 'Debug is not enabled. No success message will be sent to Slack.'
|
225
250
|
}
|
226
251
|
}
|
252
|
+
}
|
227
253
|
} // post bracket
|
228
254
|
} // Python matrix bracket
|
229
255
|
} // Python matrix stage bracket
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.10
|
4
4
|
Summary: Components for modelling diseases, risks, and interventions with ``vivarium``
|
5
5
|
Home-page: https://github.com/ihmeuw/vivarium_public_health
|
6
6
|
Author: The vivarium developers
|
@@ -0,0 +1,59 @@
|
|
1
|
+
from vivarium_public_health.__about__ import (
|
2
|
+
__author__,
|
3
|
+
__copyright__,
|
4
|
+
__email__,
|
5
|
+
__license__,
|
6
|
+
__summary__,
|
7
|
+
__title__,
|
8
|
+
__uri__,
|
9
|
+
)
|
10
|
+
from vivarium_public_health._version import __version__
|
11
|
+
from vivarium_public_health.disease import (
|
12
|
+
SI,
|
13
|
+
SIR,
|
14
|
+
SIS,
|
15
|
+
DiseaseModel,
|
16
|
+
DiseaseState,
|
17
|
+
NeonatalSWC_with_incidence,
|
18
|
+
NeonatalSWC_without_incidence,
|
19
|
+
RecoveredState,
|
20
|
+
RiskAttributableDisease,
|
21
|
+
SIR_fixed_duration,
|
22
|
+
SIS_fixed_duration,
|
23
|
+
SusceptibleState,
|
24
|
+
TransientDiseaseState,
|
25
|
+
)
|
26
|
+
from vivarium_public_health.plugins import CausesConfigurationParser
|
27
|
+
from vivarium_public_health.population import (
|
28
|
+
BasePopulation,
|
29
|
+
FertilityAgeSpecificRates,
|
30
|
+
FertilityCrudeBirthRate,
|
31
|
+
FertilityDeterministic,
|
32
|
+
Mortality,
|
33
|
+
)
|
34
|
+
from vivarium_public_health.results import (
|
35
|
+
CategoricalRiskObserver,
|
36
|
+
DisabilityObserver,
|
37
|
+
DiseaseObserver,
|
38
|
+
MortalityObserver,
|
39
|
+
ResultsStratifier,
|
40
|
+
)
|
41
|
+
from vivarium_public_health.risks import (
|
42
|
+
LBWSGRisk,
|
43
|
+
LBWSGRiskEffect,
|
44
|
+
NonLogLinearRiskEffect,
|
45
|
+
Risk,
|
46
|
+
RiskEffect,
|
47
|
+
)
|
48
|
+
from vivarium_public_health.treatment import AbsoluteShift, LinearScaleUp, TherapeuticInertia
|
49
|
+
|
50
|
+
__all__ = [
|
51
|
+
__author__,
|
52
|
+
__copyright__,
|
53
|
+
__email__,
|
54
|
+
__license__,
|
55
|
+
__summary__,
|
56
|
+
__title__,
|
57
|
+
__uri__,
|
58
|
+
__version__,
|
59
|
+
]
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.0.10"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.10
|
4
4
|
Summary: Components for modelling diseases, risks, and interventions with ``vivarium``
|
5
5
|
Home-page: https://github.com/ihmeuw/vivarium_public_health
|
6
6
|
Author: The vivarium developers
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# -----------------------------------------------------------------------------
|
2
|
-
# - invoked on push, pull_request, manual trigger, or schedule
|
3
|
-
# - test under at least 3 versions of python
|
4
|
-
# -----------------------------------------------------------------------------
|
5
|
-
name: build
|
6
|
-
on:
|
7
|
-
push:
|
8
|
-
pull_request:
|
9
|
-
workflow_dispatch:
|
10
|
-
schedule:
|
11
|
-
- cron: "0 8 * * *"
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
build:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
strategy:
|
17
|
-
matrix:
|
18
|
-
python-version: ["3.9", "3.10", "3.11"]
|
19
|
-
defaults:
|
20
|
-
run:
|
21
|
-
shell: bash -le {0}
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v3
|
24
|
-
with:
|
25
|
-
fetch-depth: 0
|
26
|
-
- name: Set up Python ${{ matrix.python-version }}
|
27
|
-
uses: actions/setup-python@v4
|
28
|
-
with:
|
29
|
-
python-version: ${{ matrix.python-version }}
|
30
|
-
- name: get upstream branch name
|
31
|
-
run: |
|
32
|
-
if "${{ github.event_name == 'pull_request' }}" ; then
|
33
|
-
echo "branch_name=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
|
34
|
-
else
|
35
|
-
echo "branch_name=${GITHUB_REF_NAME}" >> $GITHUB_ENV
|
36
|
-
fi
|
37
|
-
- name: Update pip
|
38
|
-
run: |
|
39
|
-
python -m pip install --upgrade pip
|
40
|
-
- name: Install dependencies
|
41
|
-
run: |
|
42
|
-
pip install .[dev]
|
43
|
-
git checkout ${branch_name}
|
44
|
-
- name: check for dependency branches and install if needed
|
45
|
-
run: |
|
46
|
-
cd ..
|
47
|
-
git clone https://github.com/ihmeuw/vivarium_build_utils.git
|
48
|
-
cd vivarium_public_health
|
49
|
-
echo "Contents of install_dependency_branch.sh"
|
50
|
-
echo "----------------------------------------"
|
51
|
-
cat ../vivarium_build_utils/install_dependency_branch.sh
|
52
|
-
echo ""
|
53
|
-
echo "----------------------------------------"
|
54
|
-
sh ../vivarium_build_utils/install_dependency_branch.sh layered_config_tree ${branch_name} github
|
55
|
-
sh ../vivarium_build_utils/install_dependency_branch.sh vivarium ${branch_name} github
|
56
|
-
sh ../vivarium_build_utils/install_dependency_branch.sh risk_distributions ${branch_name} github
|
57
|
-
- name: print environment values
|
58
|
-
run: |
|
59
|
-
cat $GITHUB_ENV
|
60
|
-
- name: Lint
|
61
|
-
run: |
|
62
|
-
pip install black==22.3.0 isort
|
63
|
-
isort . --check --verbose --only-modified --diff
|
64
|
-
black . --check --diff
|
65
|
-
- name: Test
|
66
|
-
run: |
|
67
|
-
if "${{ github.event_name == 'schedule' }}"; then
|
68
|
-
pytest --runslow ./tests
|
69
|
-
else
|
70
|
-
pytest ./tests
|
71
|
-
fi
|
72
|
-
- name: Doc build
|
73
|
-
run: |
|
74
|
-
make html -C docs/ SPHINXOPTS="-W --keep-going -n"
|
75
|
-
- name: Doctest
|
76
|
-
run: |
|
77
|
-
make doctest -C docs/
|
78
|
-
- name: Send mail
|
79
|
-
# Notify when cron job fails
|
80
|
-
if: (github.event_name == 'schedule' && failure())
|
81
|
-
uses: dawidd6/action-send-mail@v2
|
82
|
-
with:
|
83
|
-
# mail server settings
|
84
|
-
server_address: smtp.gmail.com
|
85
|
-
server_port: 465
|
86
|
-
# user credentials
|
87
|
-
username: ${{ secrets.NOTIFY_EMAIL }}
|
88
|
-
password: ${{ secrets.NOTIFY_PASSWORD }}
|
89
|
-
# email subject
|
90
|
-
subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
|
91
|
-
# email body as text
|
92
|
-
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
|
93
|
-
# comma-separated string, send email to
|
94
|
-
to: uw_ihme_simulationscience@uw.edu
|
95
|
-
# from email name
|
96
|
-
from: Vivarium Notifications
|
@@ -1,21 +0,0 @@
|
|
1
|
-
from vivarium_public_health.__about__ import (
|
2
|
-
__author__,
|
3
|
-
__copyright__,
|
4
|
-
__email__,
|
5
|
-
__license__,
|
6
|
-
__summary__,
|
7
|
-
__title__,
|
8
|
-
__uri__,
|
9
|
-
)
|
10
|
-
from vivarium_public_health._version import __version__
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
__author__,
|
14
|
-
__copyright__,
|
15
|
-
__email__,
|
16
|
-
__license__,
|
17
|
-
__summary__,
|
18
|
-
__title__,
|
19
|
-
__uri__,
|
20
|
-
__version__,
|
21
|
-
]
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.0.9"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/.github/pull_request_template.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/_static/style.css
RENAMED
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/_templates/layout.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/api_reference/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/docs/source/tutorials/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/disease/test_disease.py
RENAMED
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/disease/test_special_disease.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/results/test_stratification.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_base_risk.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.9 → vivarium_public_health-3.0.10}/tests/treatment/test_scale_up.py
RENAMED
File without changes
|
File without changes
|