vivarium-public-health 3.0.1__tar.gz → 3.0.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.github/workflows/build.yml +11 -11
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/CHANGELOG.rst +13 -3
- {vivarium_public_health-3.0.1/src/vivarium_public_health.egg-info → vivarium_public_health-3.0.3}/PKG-INFO +1 -1
- vivarium_public_health-3.0.3/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/population/add_new_birth_cohorts.py +4 -2
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/disability.py +12 -5
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3/src/vivarium_public_health.egg-info}/PKG-INFO +1 -1
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -1
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/test_add_new_birth_cohort.py +7 -1
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_disability_observer.py +8 -5
- vivarium_public_health-3.0.1/get_upstream_branch.sh +0 -40
- vivarium_public_health-3.0.1/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.bandit +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.flake8 +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.gitattributes +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.gitignore +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.pylintrc +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.zenodo.json +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/Jenkinsfile +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/LICENSE.txt +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/MANIFEST.in +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/Makefile +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/README.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/Makefile +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/pyproject.toml +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/setup.cfg +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/setup.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/conftest.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tox.ini +0 -0
@@ -41,21 +41,21 @@ jobs:
|
|
41
41
|
run: |
|
42
42
|
pip install .[dev]
|
43
43
|
git checkout ${branch_name}
|
44
|
-
- name: check for
|
44
|
+
- name: check for dependency branches and install if needed
|
45
45
|
run: |
|
46
|
-
|
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}
|
55
|
+
sh ../vivarium_build_utils/install_dependency_branch.sh vivarium ${branch_name}
|
47
56
|
- name: print environment values
|
48
57
|
run: |
|
49
58
|
cat $GITHUB_ENV
|
50
|
-
- name: Retrieve vivarium branch
|
51
|
-
if: env.vivarium_branch_name != 'main'
|
52
|
-
run: |
|
53
|
-
echo "Cloning upstream branch: ${vivarium_branch_name}"
|
54
|
-
pushd ..
|
55
|
-
git clone --branch=${vivarium_branch_name} https://github.com/ihmeuw/vivarium.git
|
56
|
-
pushd vivarium
|
57
|
-
pip install .
|
58
|
-
popd && popd
|
59
59
|
- name: Lint
|
60
60
|
run: |
|
61
61
|
pip install black==22.3.0 isort
|
@@ -1,3 +1,13 @@
|
|
1
|
+
**3.0.3- 08/20/24**
|
2
|
+
|
3
|
+
- Use external script to find matching dependency branches
|
4
|
+
- Fix bug when excluding all but one causes of disability from results
|
5
|
+
- Update FertilityAgeSpecificRates for new data format of age specific fertility rates
|
6
|
+
|
7
|
+
**3.0.2- 08/19/24**
|
8
|
+
|
9
|
+
- Parameterize the script to find matching dependency branches
|
10
|
+
|
1
11
|
**3.0.1 - 08/19/24**
|
2
12
|
|
3
13
|
- Fix bug in build script when the upstream vivarium branch should be main
|
@@ -56,11 +66,11 @@ Other changes:
|
|
56
66
|
|
57
67
|
- Implement CausesConfigurationParser to parse causes configuration into DiseaseModel components
|
58
68
|
- Bugfix assign sex-location-age demographic proportions by year when only one year in dataset
|
59
|
-
|
69
|
+
|
60
70
|
**2.1.4 - 01/10/24**
|
61
71
|
|
62
72
|
- Exclude undesirable arguments from the return of `BaseDiseaseState` `name` and `__repr__` methods
|
63
|
-
|
73
|
+
|
64
74
|
**2.1.3 - 01/09/24**
|
65
75
|
|
66
76
|
- Update PyPI to 2FA with trusted publisher
|
@@ -237,7 +247,7 @@ Other changes:
|
|
237
247
|
**0.10.3 - 12/13/19**
|
238
248
|
|
239
249
|
- Fix regression bug in SIR_fixed_duration.
|
240
|
-
|
250
|
+
|
241
251
|
**0.10.2 - 11/29/19**
|
242
252
|
|
243
253
|
- Fix disease observer bug that prevented it from loading its configuration.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.3
|
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 @@
|
|
1
|
+
__version__ = "3.0.3"
|
@@ -204,8 +204,10 @@ class FertilityAgeSpecificRates(Component):
|
|
204
204
|
|
205
205
|
def load_age_specific_fertility_rate_data(self, builder: Builder) -> pd.DataFrame:
|
206
206
|
asfr_data = builder.data.load("covariate.age_specific_fertility_rate.estimate")
|
207
|
-
columns = ["year_start", "year_end", "age_start", "age_end", "
|
208
|
-
asfr_data = asfr_data.loc[
|
207
|
+
columns = ["year_start", "year_end", "age_start", "age_end", "value"]
|
208
|
+
asfr_data = asfr_data.loc[
|
209
|
+
(asfr_data.sex == "Female") & (asfr_data.parameter == "mean_value")
|
210
|
+
].reset_index()[columns]
|
209
211
|
return asfr_data
|
210
212
|
|
211
213
|
########################
|
@@ -158,11 +158,18 @@ class DisabilityObserver(PublicHealthObserver):
|
|
158
158
|
once), and so the results here are actually wide by disability weight
|
159
159
|
pipeline name.
|
160
160
|
"""
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
161
|
+
if len(self.causes_of_disability) > 1:
|
162
|
+
# Drop the unused 'value' column and rename the remaining pipeline names to cause names
|
163
|
+
results = results.rename(
|
164
|
+
columns={
|
165
|
+
col: col.replace(".disability_weight", "") for col in results.columns
|
166
|
+
}
|
167
|
+
)[[col.state_id for col in self.causes_of_disability]]
|
168
|
+
else:
|
169
|
+
# Rename the 'value' column to the single cause of disability
|
170
|
+
results = results.rename(
|
171
|
+
columns={COLUMNS.VALUE: self.causes_of_disability[0].state_id}
|
172
|
+
)
|
166
173
|
# Get desired index names prior to stacking
|
167
174
|
idx_names = list(results.index.names) + [COLUMNS.SUB_ENTITY]
|
168
175
|
results = pd.DataFrame(results.stack(), columns=[COLUMNS.VALUE])
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.3
|
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
|
@@ -180,7 +180,13 @@ def test_fertility_module(base_config, base_plugins):
|
|
180
180
|
setup=False,
|
181
181
|
)
|
182
182
|
|
183
|
-
asfr_data = build_table_with_age(
|
183
|
+
asfr_data = build_table_with_age(
|
184
|
+
0.05,
|
185
|
+
key_columns={
|
186
|
+
"sex": ("Female", "Male"),
|
187
|
+
"parameter": ("lower_value", "mean_value", "upper_value"),
|
188
|
+
},
|
189
|
+
)
|
184
190
|
simulation._data.write("covariate.age_specific_fertility_rate.estimate", asfr_data)
|
185
191
|
|
186
192
|
simulation.setup()
|
@@ -278,17 +278,20 @@ def test_set_causes_of_disability_raises(mocker):
|
|
278
278
|
observer.setup_component(builder)
|
279
279
|
|
280
280
|
|
281
|
-
|
282
|
-
|
281
|
+
@pytest.mark.parametrize(
|
282
|
+
"exclusions",
|
283
|
+
[
|
284
|
+
[],
|
285
|
+
["all_causes"],
|
286
|
+
["all_causes", "sick_cause_0"],
|
287
|
+
],
|
288
|
+
)
|
283
289
|
def test_category_exclusions(
|
284
290
|
base_config,
|
285
291
|
base_plugins,
|
286
292
|
exclusions,
|
287
293
|
):
|
288
294
|
"""Integration test for the disability observer and the Results Management system."""
|
289
|
-
|
290
|
-
if len(exclusions) == 2:
|
291
|
-
pytest.skip(reason="FIXME: error when excluding all but one disability")
|
292
295
|
year_start = base_config.time.start.year
|
293
296
|
year_end = base_config.time.end.year
|
294
297
|
|
@@ -1,40 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# Define variables
|
4
|
-
branch_name=$1
|
5
|
-
|
6
|
-
vivarium_branch_name='main'
|
7
|
-
branch_name_to_check=${branch_name}
|
8
|
-
iterations=0
|
9
|
-
|
10
|
-
while [ "$branch_name_to_check" != "$vivarium_branch_name" ] && [ $iterations -lt 20 ]
|
11
|
-
do
|
12
|
-
echo "Checking for vivarium branch: '${branch_name_to_check}'"
|
13
|
-
if
|
14
|
-
git ls-remote --exit-code \
|
15
|
-
--heads https://github.com/ihmeuw/vivarium.git ${branch_name_to_check} == "0"
|
16
|
-
then
|
17
|
-
vivarium_branch_name=${branch_name_to_check}
|
18
|
-
echo "Found matching branch: ${vivarium_branch_name}"
|
19
|
-
else
|
20
|
-
echo "Could not find upstream branch '${branch_name_to_check}'. Finding parent branch."
|
21
|
-
branch_name_to_check="$( \
|
22
|
-
git show-branch -a \
|
23
|
-
| grep '\*' \
|
24
|
-
| grep -v `git rev-parse --abbrev-ref HEAD` \
|
25
|
-
| head -n1 \
|
26
|
-
| sed 's/[^\[]*//' \
|
27
|
-
| awk 'match($0, /\[[a-zA-Z0-9\/.-]+\]/) { print substr( $0, RSTART+1, RLENGTH-2 )}' \
|
28
|
-
| sed 's/^origin\///' \
|
29
|
-
)"
|
30
|
-
if [ -z "$branch_name_to_check" ]; then
|
31
|
-
echo "Could not find upstream branch. Will use released version."
|
32
|
-
branch_name_to_check="main"
|
33
|
-
fi
|
34
|
-
echo "Checking out branch: ${branch_name_to_check}"
|
35
|
-
git checkout ${branch_name_to_check}
|
36
|
-
iterations=$((iterations+1))
|
37
|
-
fi
|
38
|
-
done
|
39
|
-
echo "vivarium_branch_name=${vivarium_branch_name}" >> $GITHUB_ENV
|
40
|
-
git checkout ${branch_name}
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.0.1"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/.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
|
File without changes
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/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.1 → vivarium_public_health-3.0.3}/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
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/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.0.1 → vivarium_public_health-3.0.3}/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
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/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.0.1 → vivarium_public_health-3.0.3}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_disability.py
RENAMED
File without changes
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.1 → vivarium_public_health-3.0.3}/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.0.1 → vivarium_public_health-3.0.3}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|