vivarium-public-health 3.0.4__tar.gz → 3.0.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/CHANGELOG.rst +6 -0
- {vivarium_public_health-3.0.4/src/vivarium_public_health.egg-info → vivarium_public_health-3.0.5}/PKG-INFO +1 -1
- vivarium_public_health-3.0.5/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/disability.py +4 -4
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/disease.py +3 -3
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/mortality.py +4 -4
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/observer.py +10 -0
- vivarium_public_health-3.0.5/src/vivarium_public_health/results/simple_cause.py +43 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5/src/vivarium_public_health.egg-info}/PKG-INFO +1 -1
- vivarium_public_health-3.0.4/src/vivarium_public_health/_version.py +0 -1
- vivarium_public_health-3.0.4/src/vivarium_public_health/results/simple_cause.py +0 -24
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.bandit +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.flake8 +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.gitattributes +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.gitignore +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.pylintrc +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.readthedocs.yml +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/.zenodo.json +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/Jenkinsfile +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/LICENSE.txt +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/MANIFEST.in +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/Makefile +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/README.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/Makefile +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/disability.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/disease.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/mortality.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/observer.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/risk.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/simple_cause.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/results/stratification.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/conf.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/pyproject.toml +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/setup.cfg +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/setup.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/population/data_transformations.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/columns.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/risk.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/results/stratification.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/treatment/scale_up.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/conftest.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/mock_artifact.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/conftest.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/test_mortality.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_disability.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_disability_observer.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_disease_observer.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_mortality_observer.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_stratification.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/test_utilities.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.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
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.0.5"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""
|
2
|
-
|
3
|
-
Disability
|
4
|
-
|
2
|
+
====================
|
3
|
+
Disability Observers
|
4
|
+
====================
|
5
5
|
|
6
6
|
This module contains tools for observing years lived with disability (YLDs)
|
7
7
|
in the simulation.
|
@@ -102,7 +102,7 @@ class DisabilityObserver(PublicHealthObserver):
|
|
102
102
|
)
|
103
103
|
# Convert to SimpleCause instances and add on all_causes
|
104
104
|
causes_of_disability = [
|
105
|
-
SimpleCause.
|
105
|
+
SimpleCause.create_from_specific_cause(cause) for cause in causes_of_disability
|
106
106
|
] + [SimpleCause("all_causes", "all_causes", "cause")]
|
107
107
|
|
108
108
|
excluded_causes = (
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""
|
2
|
-
|
3
|
-
Mortality
|
4
|
-
|
2
|
+
===================
|
3
|
+
Mortality Observers
|
4
|
+
===================
|
5
5
|
|
6
6
|
This module contains tools for observing cause-specific and
|
7
7
|
excess mortality in the simulation, including "other causes".
|
@@ -130,7 +130,7 @@ class MortalityObserver(PublicHealthObserver):
|
|
130
130
|
|
131
131
|
# Convert to SimpleCauses and add on other_causes and not_dead
|
132
132
|
self.causes_of_death = [
|
133
|
-
SimpleCause.
|
133
|
+
SimpleCause.create_from_specific_cause(cause) for cause in causes_of_death
|
134
134
|
] + [
|
135
135
|
SimpleCause("not_dead", "not_dead", "cause"),
|
136
136
|
SimpleCause("other_causes", "other_causes", "cause"),
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"""
|
2
|
+
============
|
3
|
+
Simple Cause
|
4
|
+
============
|
5
|
+
|
6
|
+
This module contains tools for creating a minimal representation of a cause
|
7
|
+
as required by observers.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
from dataclasses import dataclass
|
12
|
+
|
13
|
+
|
14
|
+
@dataclass
|
15
|
+
class SimpleCause:
|
16
|
+
"""A simple dataclass to represent the bare minimum information needed by observers.
|
17
|
+
|
18
|
+
It also includes a class method to convert a provided cause into a
|
19
|
+
``SimpleCause`` instance.
|
20
|
+
|
21
|
+
"""
|
22
|
+
|
23
|
+
state_id: str
|
24
|
+
"""The state_id of the cause."""
|
25
|
+
model: str
|
26
|
+
"""The model of the cause."""
|
27
|
+
cause_type: str
|
28
|
+
"""The cause type of the cause."""
|
29
|
+
|
30
|
+
@classmethod
|
31
|
+
def create_from_specific_cause(cls, cause: type) -> "SimpleCause":
|
32
|
+
"""Create a SimpleCause instance from a more specific cause.
|
33
|
+
|
34
|
+
Parameters
|
35
|
+
----------
|
36
|
+
cause
|
37
|
+
The cause to be converted into a SimpleCause instance.
|
38
|
+
|
39
|
+
Returns
|
40
|
+
-------
|
41
|
+
A SimpleCause instance.
|
42
|
+
"""
|
43
|
+
return cls(cause.state_id, cause.model, cause.cause_type)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.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
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.0.4"
|
@@ -1,24 +0,0 @@
|
|
1
|
-
from dataclasses import dataclass
|
2
|
-
|
3
|
-
|
4
|
-
@dataclass
|
5
|
-
class SimpleCause:
|
6
|
-
"""A simple dataclass to represent the bare minimum information needed
|
7
|
-
for observers, e.g. 'all_causes' as a cause of disability.
|
8
|
-
|
9
|
-
It also includes a class method to convert a provided disease state into a
|
10
|
-
``SimpleCause`` instance.
|
11
|
-
|
12
|
-
"""
|
13
|
-
|
14
|
-
state_id: str
|
15
|
-
"""The state_id of the cause."""
|
16
|
-
model: str
|
17
|
-
"""The model of the cause."""
|
18
|
-
cause_type: str
|
19
|
-
"""The cause type of the cause."""
|
20
|
-
|
21
|
-
@classmethod
|
22
|
-
def create_from_disease_state(cls, disease_state: type) -> "SimpleCause":
|
23
|
-
"""Create a SimpleCause instance from a"""
|
24
|
-
return cls(disease_state.state_id, disease_state.model, disease_state.cause_type)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.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
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.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.0.4 → vivarium_public_health-3.0.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.0.4 → vivarium_public_health-3.0.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.0.4 → vivarium_public_health-3.0.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
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.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
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/population/test_mortality.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.5}/tests/results/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-3.0.4 → vivarium_public_health-3.0.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.0.4 → vivarium_public_health-3.0.5}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|