vivarium-public-health 3.2.1__tar.gz → 3.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/CHANGELOG.rst +4 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/PKG-INFO +1 -1
- vivarium_public_health-3.2.2/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +2 -4
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/PKG-INFO +1 -1
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_low_birth_weight_and_short_gestation.py +10 -6
- vivarium_public_health-3.2.1/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.bandit +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.flake8 +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.gitattributes +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.gitignore +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.pylintrc +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.zenodo.json +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/Jenkinsfile +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/LICENSE.txt +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/MANIFEST.in +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/Makefile +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/README.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/Makefile +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/simple_cause.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/pyproject.toml +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/python_versions.json +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/setup.cfg +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/setup.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/exceptions.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/disability.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/disease.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/mortality.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/simple_cause.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/conftest.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/data/rr_interpolator.csv +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/treatment/test_scale_up.py +0 -0
- {vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.2
|
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.2.2"
|
@@ -371,11 +371,9 @@ class LBWSGRiskEffect(RiskEffect):
|
|
371
371
|
|
372
372
|
def get_age_intervals(self, builder: Builder) -> dict[str, pd.Interval]:
|
373
373
|
age_bins = builder.data.load("population.age_bins").set_index("age_start")
|
374
|
-
|
375
|
-
exposure = exposure[exposure["age_end"] > 0]
|
376
|
-
|
374
|
+
relative_risks = builder.data.load(f"{self.risk}.relative_risk")
|
377
375
|
exposed_age_group_starts = (
|
378
|
-
|
376
|
+
relative_risks.groupby("age_start")["value"].any().reset_index()["age_start"]
|
379
377
|
)
|
380
378
|
|
381
379
|
return {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.2
|
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
|
@@ -56,11 +56,15 @@ def test_lbwsg_risk_effect_rr_pipeline(
|
|
56
56
|
# Create exposure with matching demograph index as age_bins
|
57
57
|
age_bins = make_age_bins()
|
58
58
|
agees = age_bins.drop(columns="age_group_name")
|
59
|
-
|
59
|
+
# Have to match age bins and rr data to make age intervals
|
60
|
+
rr_data = make_categorical_data(agees)
|
61
|
+
# Exposure data used for risk component
|
62
|
+
exposure = make_categorical_data(agees)
|
60
63
|
|
61
64
|
# Add data dict to add to artifact
|
62
65
|
data = {
|
63
|
-
f"{risk.name}.exposure":
|
66
|
+
f"{risk.name}.exposure": exposure,
|
67
|
+
f"{risk.name}.relative_risk": rr_data,
|
64
68
|
f"{risk.name}.population_attributable_fraction": 0,
|
65
69
|
f"{risk.name}.categories": categories,
|
66
70
|
f"{risk.name}.relative_risk_interpolator": mock_rr_interpolators,
|
@@ -118,9 +122,9 @@ def test_lbwsg_risk_effect_rr_pipeline(
|
|
118
122
|
assert (actual_rr == 1.0).all()
|
119
123
|
|
120
124
|
|
121
|
-
def
|
125
|
+
def make_categorical_data(data: pd.DataFrame) -> pd.DataFrame:
|
122
126
|
# Takes age gropus and adds sex, years, categories, and values
|
123
|
-
|
127
|
+
dfs = []
|
124
128
|
for year in range(1990, 2017):
|
125
129
|
tmp = data.copy()
|
126
130
|
tmp["year_start"] = year
|
@@ -137,6 +141,6 @@ def make_categorical_exposure_data(data: pd.DataFrame) -> pd.DataFrame:
|
|
137
141
|
female_tmp = categories_df.copy()
|
138
142
|
female_tmp["sex"] = "Female"
|
139
143
|
age_sex_df = pd.concat([male_tmp, female_tmp])
|
140
|
-
|
144
|
+
dfs.append(age_sex_df)
|
141
145
|
|
142
|
-
return pd.concat(
|
146
|
+
return pd.concat(dfs)
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.2.1"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/.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
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/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.2.1 → vivarium_public_health-3.2.2}/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.2.1 → vivarium_public_health-3.2.2}/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
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/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
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/data/rr_interpolator.csv
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/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.2.1 → vivarium_public_health-3.2.2}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/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.2.1 → vivarium_public_health-3.2.2}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.2.1 → vivarium_public_health-3.2.2}/tests/treatment/test_scale_up.py
RENAMED
File without changes
|
File without changes
|