vivarium-public-health 3.1.4__tar.gz → 3.1.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/CHANGELOG.rst +4 -0
- vivarium_public_health-3.1.5/Jenkinsfile +2 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/Makefile +1 -1
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/PKG-INFO +11 -2
- vivarium_public_health-3.1.5/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/PKG-INFO +11 -2
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/test_add_new_birth_cohort.py +4 -3
- vivarium_public_health-3.1.4/Jenkinsfile +0 -257
- vivarium_public_health-3.1.4/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.bandit +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.flake8 +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.gitattributes +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.gitignore +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.pylintrc +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.zenodo.json +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/LICENSE.txt +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/MANIFEST.in +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/README.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/Makefile +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/simple_cause.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/pyproject.toml +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/setup.cfg +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/setup.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/exceptions.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/disability.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/conftest.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/treatment/test_scale_up.py +0 -0
- {vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tox.ini +0 -0
@@ -101,4 +101,4 @@ build-package: $(MAKE_SOURCES) # Build the package as a pip wheel
|
|
101
101
|
clean: # Delete build artifacts and do any custom cleanup such as spinning down services
|
102
102
|
@rm -rf format lint build-doc build-package integration .pytest_cache
|
103
103
|
@rm -rf dist output
|
104
|
-
$(shell find . -type f -name '*py[co]' -delete -o -type d -name __pycache__ -delete)
|
104
|
+
$(shell find . -type f -name '*py[co]' -delete -o -type d -name __pycache__ -delete)
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.5
|
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
|
@@ -64,6 +64,15 @@ Requires-Dist: hypothesis; extra == "dev"
|
|
64
64
|
Requires-Dist: pyyaml; extra == "dev"
|
65
65
|
Requires-Dist: black==22.3.0; extra == "dev"
|
66
66
|
Requires-Dist: isort; extra == "dev"
|
67
|
+
Dynamic: author
|
68
|
+
Dynamic: author-email
|
69
|
+
Dynamic: classifier
|
70
|
+
Dynamic: description
|
71
|
+
Dynamic: home-page
|
72
|
+
Dynamic: license
|
73
|
+
Dynamic: provides-extra
|
74
|
+
Dynamic: requires-dist
|
75
|
+
Dynamic: summary
|
67
76
|
|
68
77
|
Vivarium Public Health
|
69
78
|
======================
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.1.5"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.5
|
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
|
@@ -64,6 +64,15 @@ Requires-Dist: hypothesis; extra == "dev"
|
|
64
64
|
Requires-Dist: pyyaml; extra == "dev"
|
65
65
|
Requires-Dist: black==22.3.0; extra == "dev"
|
66
66
|
Requires-Dist: isort; extra == "dev"
|
67
|
+
Dynamic: author
|
68
|
+
Dynamic: author-email
|
69
|
+
Dynamic: classifier
|
70
|
+
Dynamic: description
|
71
|
+
Dynamic: home-page
|
72
|
+
Dynamic: license
|
73
|
+
Dynamic: provides-extra
|
74
|
+
Dynamic: requires-dist
|
75
|
+
Dynamic: summary
|
67
76
|
|
68
77
|
Vivarium Public Health
|
69
78
|
======================
|
@@ -48,7 +48,6 @@ def crude_birth_rate_data(live_births=500):
|
|
48
48
|
def test_FertilityDeterministic(config):
|
49
49
|
pop_size = config.population.population_size
|
50
50
|
annual_new_simulants = 1000
|
51
|
-
step_size = config.time.step_size
|
52
51
|
num_days = 100
|
53
52
|
|
54
53
|
config.update(
|
@@ -58,10 +57,12 @@ def test_FertilityDeterministic(config):
|
|
58
57
|
|
59
58
|
components = [TestPopulation(), FertilityDeterministic()]
|
60
59
|
simulation = InteractiveContext(components=components, configuration=config)
|
61
|
-
|
60
|
+
start_time = simulation.current_time
|
61
|
+
simulation.run_for(duration=pd.Timedelta(days=num_days))
|
62
|
+
end_time = simulation.current_time
|
62
63
|
pop = simulation.get_population()
|
63
64
|
|
64
|
-
assert
|
65
|
+
assert (end_time - start_time) / pd.Timedelta(days=1) == num_days
|
65
66
|
assert np.all(pop.alive == "alive")
|
66
67
|
assert (
|
67
68
|
int(num_days * annual_new_simulants / utilities.DAYS_PER_YEAR)
|
@@ -1,257 +0,0 @@
|
|
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
|
-
|
13
|
-
pipeline_name="vivarium_public_health"
|
14
|
-
conda_env_name="${pipeline_name}-${BUILD_NUMBER}"
|
15
|
-
conda_env_path="/tmp/${conda_env_name}"
|
16
|
-
// defaults for conda and pip are a local directory /svc-simsci for improved speed.
|
17
|
-
// In the past, we used /ihme/code/* on the NFS (which is slower)
|
18
|
-
shared_path="/svc-simsci"
|
19
|
-
|
20
|
-
|
21
|
-
pipeline {
|
22
|
-
// This agent runs as svc-simsci on node simsci-slurm-sbuild-p01.
|
23
|
-
// It has access to standard IHME filesystems and singularity
|
24
|
-
agent { label "svc-simsci" }
|
25
|
-
|
26
|
-
options {
|
27
|
-
// Keep 100 old builds.
|
28
|
-
buildDiscarder logRotator(numToKeepStr: "100")
|
29
|
-
|
30
|
-
// Wait 60 seconds before starting the build.
|
31
|
-
// If another commit enters the build queue in this time, the first build will be discarded.
|
32
|
-
quietPeriod(60)
|
33
|
-
|
34
|
-
// Fail immediately if any part of a parallel stage fails
|
35
|
-
parallelsAlwaysFailFast()
|
36
|
-
}
|
37
|
-
|
38
|
-
parameters {
|
39
|
-
booleanParam(
|
40
|
-
name: "DEPLOY_OVERRIDE",
|
41
|
-
defaultValue: false,
|
42
|
-
description: "Whether to deploy despite building a non-default branch. Builds of the default branch are always deployed."
|
43
|
-
)
|
44
|
-
booleanParam(
|
45
|
-
name: "IS_CRON",
|
46
|
-
defaultValue: true,
|
47
|
-
description: "Indicates a recurring build. Used to skip deployment steps."
|
48
|
-
)
|
49
|
-
string(
|
50
|
-
name: "SLACK_TO",
|
51
|
-
defaultValue: "simsci-ci-status",
|
52
|
-
description: "The Slack channel to send messages to."
|
53
|
-
)
|
54
|
-
booleanParam(
|
55
|
-
name: "DEBUG",
|
56
|
-
defaultValue: false,
|
57
|
-
description: "Used as needed for debugging purposes."
|
58
|
-
)
|
59
|
-
}
|
60
|
-
|
61
|
-
stages {
|
62
|
-
stage("Initialization") {
|
63
|
-
steps {
|
64
|
-
script {
|
65
|
-
// Use the name of the branch in the build name
|
66
|
-
currentBuild.displayName = "#${BUILD_NUMBER} ${GIT_BRANCH}"
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
stage("Python version matrix") {
|
72
|
-
// we don't want to go to deployment if any of the matrix branches fail
|
73
|
-
failFast true
|
74
|
-
matrix {
|
75
|
-
// customWorkspace setting must be ran within a node
|
76
|
-
agent {
|
77
|
-
node {
|
78
|
-
label "svc-simsci"
|
79
|
-
}
|
80
|
-
}
|
81
|
-
axes {
|
82
|
-
axis {
|
83
|
-
// parallelize by python minor version
|
84
|
-
name 'PYTHON_VERSION'
|
85
|
-
values "3.10", "3.11"
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
environment {
|
90
|
-
// Get the branch being built and strip everything but the text after the last "/"
|
91
|
-
BRANCH = sh(script: "echo ${GIT_BRANCH} | rev | cut -d '/' -f1 | rev", returnStdout: true).trim()
|
92
|
-
TIMESTAMP = sh(script: 'date', returnStdout: true)
|
93
|
-
// Specify the path to the .condarc file via environment variable.
|
94
|
-
// This file configures the shared conda package cache.
|
95
|
-
CONDARC = "${shared_path}/miniconda3/.condarc"
|
96
|
-
CONDA_BIN_PATH = "${shared_path}/miniconda3/bin"
|
97
|
-
// Specify conda env by build number so that we don't have collisions if builds from
|
98
|
-
// different branches happen concurrently.
|
99
|
-
PYTHON_DEPLOY_VERSION = "3.11"
|
100
|
-
CONDA_ENV_NAME = "${conda_env_name}"
|
101
|
-
CONDA_ENV_PATH = "${conda_env_path}_${PYTHON_VERSION}"
|
102
|
-
// Set the Pip cache.
|
103
|
-
XDG_CACHE_HOME = "${shared_path}/pip-cache"
|
104
|
-
// Jenkins commands run in separate processes, so need to activate the environment every
|
105
|
-
// time we run pip, poetry, etc.
|
106
|
-
ACTIVATE = "source ${CONDA_BIN_PATH}/activate ${CONDA_ENV_PATH} &> /dev/null"
|
107
|
-
}
|
108
|
-
|
109
|
-
stages {
|
110
|
-
stage("Debug Info") {
|
111
|
-
steps {
|
112
|
-
echo "Jenkins pipeline run timestamp: ${TIMESTAMP}"
|
113
|
-
// Display parameters used.
|
114
|
-
echo """Parameters:
|
115
|
-
DEPLOY_OVERRIDE: ${params.DEPLOY_OVERRIDE}"""
|
116
|
-
|
117
|
-
// Display environment variables from Jenkins.
|
118
|
-
echo """Environment:
|
119
|
-
ACTIVATE: '${ACTIVATE}'
|
120
|
-
BUILD_NUMBER: '${BUILD_NUMBER}'
|
121
|
-
BRANCH: '${BRANCH}'
|
122
|
-
CONDARC: '${CONDARC}'
|
123
|
-
CONDA_BIN_PATH: '${CONDA_BIN_PATH}'
|
124
|
-
CONDA_ENV_NAME: '${CONDA_ENV_NAME}'
|
125
|
-
CONDA_ENV_PATH: '${CONDA_ENV_PATH}'
|
126
|
-
GIT_BRANCH: '${GIT_BRANCH}'
|
127
|
-
JOB_NAME: '${JOB_NAME}'
|
128
|
-
WORKSPACE: '${WORKSPACE}'
|
129
|
-
XDG_CACHE_HOME: '${XDG_CACHE_HOME}'"""
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
stage("Build Environment") {
|
134
|
-
environment {
|
135
|
-
// Command for activating the base environment. Activating the base environment sets
|
136
|
-
// the correct path to the conda binary which is used to create a new conda env.
|
137
|
-
ACTIVATE_BASE = "source ${CONDA_BIN_PATH}/activate &> /dev/null"
|
138
|
-
}
|
139
|
-
steps {
|
140
|
-
// The env should have been cleaned out after the last build, but delete it again
|
141
|
-
// here just to be safe.
|
142
|
-
sh "rm -rf ${CONDA_ENV_PATH}"
|
143
|
-
sh "${ACTIVATE_BASE} && make build-env PYTHON_VERSION=${PYTHON_VERSION}"
|
144
|
-
// open permissions for test users to create file in workspace
|
145
|
-
sh "chmod 777 ${WORKSPACE}"
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
stage("Install Package") {
|
150
|
-
steps {
|
151
|
-
sh "${ACTIVATE} && make install"
|
152
|
-
}
|
153
|
-
}
|
154
|
-
|
155
|
-
// Quality Checks
|
156
|
-
stage("Format") {
|
157
|
-
steps {
|
158
|
-
sh "${ACTIVATE} && make format"
|
159
|
-
}
|
160
|
-
}
|
161
|
-
|
162
|
-
// stage("Lint") {
|
163
|
-
// steps {
|
164
|
-
// sh "${ACTIVATE} && make lint"
|
165
|
-
// }
|
166
|
-
// }
|
167
|
-
|
168
|
-
// Tests
|
169
|
-
// removable, if passwords can be exported to env. securely without bash indirection
|
170
|
-
stage("Run Integration Tests") {
|
171
|
-
steps {
|
172
|
-
sh "${ACTIVATE} && make integration"
|
173
|
-
publishHTML([
|
174
|
-
allowMissing: true,
|
175
|
-
alwaysLinkToLastBuild: false,
|
176
|
-
keepAll: true,
|
177
|
-
reportDir: "output/htmlcov_integration",
|
178
|
-
reportFiles: "index.html",
|
179
|
-
reportName: "Coverage Report - Integration tests",
|
180
|
-
reportTitles: ''
|
181
|
-
])
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
// Build
|
186
|
-
stage('Build and Deploy') {
|
187
|
-
when {
|
188
|
-
expression { "${PYTHON_DEPLOY_VERSION}" == "${PYTHON_VERSION}" }
|
189
|
-
}
|
190
|
-
stages {
|
191
|
-
stage("Build Docs") {
|
192
|
-
steps {
|
193
|
-
sh "${ACTIVATE} && make build-doc"
|
194
|
-
}
|
195
|
-
}
|
196
|
-
stage("Build Package") {
|
197
|
-
steps {
|
198
|
-
sh "${ACTIVATE} && make build-package"
|
199
|
-
}
|
200
|
-
}
|
201
|
-
} // stages within build and deploy
|
202
|
-
} // build and deploy stage
|
203
|
-
} // stages bracket within Python matrix
|
204
|
-
post {
|
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"
|
214
|
-
}
|
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,
|
246
|
-
teamDomain: "ihme",
|
247
|
-
tokenCredentialId: "slack"
|
248
|
-
} else {
|
249
|
-
echo 'Debug is not enabled. No success message will be sent to Slack.'
|
250
|
-
}
|
251
|
-
}
|
252
|
-
}
|
253
|
-
} // post bracket
|
254
|
-
} // Python matrix bracket
|
255
|
-
} // Python matrix stage bracket
|
256
|
-
} // stages bracket
|
257
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.1.4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/.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
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/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.1.4 → vivarium_public_health-3.1.5}/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.1.4 → vivarium_public_health-3.1.5}/docs/source/tutorials/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/src/vivarium_public_health/__init__.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
|
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.1.4 → vivarium_public_health-3.1.5}/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
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/tests/results/test_stratification.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.1.4 → vivarium_public_health-3.1.5}/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.1.4 → vivarium_public_health-3.1.5}/tests/treatment/test_scale_up.py
RENAMED
File without changes
|
File without changes
|