vivarium-public-health 2.3.0__tar.gz → 2.3.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/CHANGELOG.rst +9 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/PKG-INFO +1 -1
- vivarium_public_health-2.3.2/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/state.py +3 -2
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/mortality.py +20 -17
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/PKG-INFO +1 -1
- vivarium_public_health-2.3.0/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.gitattributes +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.gitignore +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.pylintrc +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.readthedocs.yml +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/.zenodo.json +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/LICENSE.txt +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/MANIFEST.in +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/README.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/Makefile +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/disability.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/disease.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/mortality.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/risk.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/metrics/stratification.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/testing/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/testing/mock_artifact.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/testing/utils.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/conf.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/pyproject.toml +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/setup.cfg +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/setup.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/disability.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/disease.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/risk.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/metrics/stratification.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/testing/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/testing/mock_artifact.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/testing/utils.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/conftest.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_disability.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_disability_observer.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_disease_observer.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_mortality_observer.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_stratification.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/population/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/population/conftest.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/test_utilities.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tox.ini +0 -0
@@ -1,3 +1,12 @@
|
|
1
|
+
**2.3.2 - 3/13/24**
|
2
|
+
|
3
|
+
- Update to Mortality Observer to make subclassing easier.
|
4
|
+
|
5
|
+
**2.3.1 - 3/11/24**
|
6
|
+
|
7
|
+
- Update Mortality Observer to include tracked in population filter
|
8
|
+
- Fix bug in get_initialization_parameters to only remove existing keys if necessary
|
9
|
+
|
1
10
|
**2.3.0 - 3/7/24**
|
2
11
|
|
3
12
|
- Update population configuration keys to be more descriptive
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.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__ = "2.3.2"
|
@@ -85,8 +85,9 @@ class BaseDiseaseState(State):
|
|
85
85
|
def get_initialization_parameters(self) -> Dict[str, Any]:
|
86
86
|
"""Exclude side effect function and cause type from name and __repr__."""
|
87
87
|
initialization_parameters = super().get_initialization_parameters()
|
88
|
-
|
89
|
-
|
88
|
+
for key in ["side_effect_function", "cause_type"]:
|
89
|
+
if key in initialization_parameters.keys():
|
90
|
+
del initialization_parameters[key]
|
90
91
|
return initialization_parameters
|
91
92
|
|
92
93
|
def get_initial_event_times(self, pop_data: SimulantData) -> pd.DataFrame:
|
@@ -54,6 +54,17 @@ class MortalityObserver(Component):
|
|
54
54
|
}
|
55
55
|
}
|
56
56
|
|
57
|
+
def __init__(self):
|
58
|
+
super().__init__()
|
59
|
+
self.causes_of_death = ["other_causes"]
|
60
|
+
self.required_death_columns = ["alive", "exit_time"]
|
61
|
+
self.required_yll_columns = [
|
62
|
+
"alive",
|
63
|
+
"cause_of_death",
|
64
|
+
"exit_time",
|
65
|
+
"years_of_life_lost",
|
66
|
+
]
|
67
|
+
|
57
68
|
##############
|
58
69
|
# Properties #
|
59
70
|
##############
|
@@ -75,17 +86,14 @@ class MortalityObserver(Component):
|
|
75
86
|
def setup(self, builder: Builder) -> None:
|
76
87
|
self.clock = builder.time.clock()
|
77
88
|
self.config = builder.configuration.stratification.mortality
|
78
|
-
|
89
|
+
cause_components = builder.components.get_components_by_type(
|
79
90
|
(DiseaseState, RiskAttributableDisease)
|
80
91
|
)
|
81
|
-
|
92
|
+
self.causes_of_death += [
|
93
|
+
cause.state_id for cause in cause_components if cause.has_excess_mortality
|
94
|
+
]
|
82
95
|
if not self.config.aggregate:
|
83
|
-
|
84
|
-
cause.state_id
|
85
|
-
for cause in self._cause_components
|
86
|
-
if cause.has_excess_mortality
|
87
|
-
]
|
88
|
-
for cause_of_death in causes_of_death:
|
96
|
+
for cause_of_death in self.causes_of_death:
|
89
97
|
self._register_mortality_observations(
|
90
98
|
builder, cause_of_death, f'cause_of_death == "{cause_of_death}"'
|
91
99
|
)
|
@@ -100,15 +108,15 @@ class MortalityObserver(Component):
|
|
100
108
|
self, builder: Builder, cause: str, additional_pop_filter: str = ""
|
101
109
|
) -> None:
|
102
110
|
pop_filter = (
|
103
|
-
'alive == "dead"'
|
111
|
+
'alive == "dead" and tracked == True'
|
104
112
|
if additional_pop_filter == ""
|
105
|
-
else f'alive == "dead" and {additional_pop_filter}'
|
113
|
+
else f'alive == "dead" and tracked == True and {additional_pop_filter}'
|
106
114
|
)
|
107
115
|
builder.results.register_observation(
|
108
116
|
name=f"death_due_to_{cause}",
|
109
117
|
pop_filter=pop_filter,
|
110
118
|
aggregator=self.count_deaths,
|
111
|
-
requires_columns=
|
119
|
+
requires_columns=self.required_death_columns,
|
112
120
|
additional_stratifications=self.config.include,
|
113
121
|
excluded_stratifications=self.config.exclude,
|
114
122
|
when="collect_metrics",
|
@@ -117,12 +125,7 @@ class MortalityObserver(Component):
|
|
117
125
|
name=f"ylls_due_to_{cause}",
|
118
126
|
pop_filter=pop_filter,
|
119
127
|
aggregator=self.calculate_ylls,
|
120
|
-
requires_columns=
|
121
|
-
"alive",
|
122
|
-
"cause_of_death",
|
123
|
-
"exit_time",
|
124
|
-
"years_of_life_lost",
|
125
|
-
],
|
128
|
+
requires_columns=self.required_yll_columns,
|
126
129
|
additional_stratifications=self.config.include,
|
127
130
|
excluded_stratifications=self.config.exclude,
|
128
131
|
when="collect_metrics",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.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
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "2.3.0"
|
File without changes
|
File without changes
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.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
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.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-2.3.0 → vivarium_public_health-2.3.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
|
File without changes
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.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
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.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-2.3.0 → vivarium_public_health-2.3.2}/tests/disease/test_special_disease.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/metrics/test_stratification.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
|
{vivarium_public_health-2.3.0 → vivarium_public_health-2.3.2}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|