vivarium-public-health 4.1.0__py3-none-any.whl → 4.1.1__py3-none-any.whl
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/_version.py +1 -1
- vivarium_public_health/results/disability.py +1 -15
- vivarium_public_health/results/disease.py +2 -26
- vivarium_public_health/results/mortality.py +0 -14
- vivarium_public_health/results/risk.py +2 -26
- {vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/METADATA +2 -2
- {vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/RECORD +10 -10
- {vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/WHEEL +0 -0
- {vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/licenses/LICENSE.txt +0 -0
- {vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "4.1.
|
1
|
+
__version__ = "4.1.1"
|
@@ -34,7 +34,7 @@ class DisabilityObserver(PublicHealthObserver):
|
|
34
34
|
.. code-block:: yaml
|
35
35
|
|
36
36
|
configuration:
|
37
|
-
|
37
|
+
stratification:
|
38
38
|
disability:
|
39
39
|
exclude:
|
40
40
|
- "sex"
|
@@ -128,20 +128,6 @@ class DisabilityObserver(PublicHealthObserver):
|
|
128
128
|
cause for cause in causes_of_disability if cause.state_id not in excluded_causes
|
129
129
|
]
|
130
130
|
|
131
|
-
def get_configuration(self, builder: Builder) -> LayeredConfigTree:
|
132
|
-
"""Get the stratification configuration for this observer.
|
133
|
-
|
134
|
-
Parameters
|
135
|
-
----------
|
136
|
-
builder
|
137
|
-
The builder object for the simulation.
|
138
|
-
|
139
|
-
Returns
|
140
|
-
-------
|
141
|
-
The stratification configuration for this observer.
|
142
|
-
"""
|
143
|
-
return builder.configuration.stratification.disability
|
144
|
-
|
145
131
|
def register_observations(self, builder: Builder) -> None:
|
146
132
|
"""Register an observation for years lived with disability."""
|
147
133
|
cause_pipelines = [
|
@@ -66,19 +66,6 @@ class DiseaseObserver(PublicHealthObserver):
|
|
66
66
|
# Properties #
|
67
67
|
##############
|
68
68
|
|
69
|
-
@property
|
70
|
-
def configuration_defaults(self) -> dict[str, Any]:
|
71
|
-
"""A dictionary containing the defaults for any configurations managed by
|
72
|
-
this component.
|
73
|
-
"""
|
74
|
-
return {
|
75
|
-
"stratification": {
|
76
|
-
self.disease: super().configuration_defaults["stratification"][
|
77
|
-
self.get_configuration_name()
|
78
|
-
]
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
69
|
@property
|
83
70
|
def columns_created(self) -> list[str]:
|
84
71
|
"""Columns created by this observer."""
|
@@ -122,19 +109,8 @@ class DiseaseObserver(PublicHealthObserver):
|
|
122
109
|
self.entity = self.disease_model.cause
|
123
110
|
self.transition_stratification_name = f"transition_{self.disease}"
|
124
111
|
|
125
|
-
def
|
126
|
-
|
127
|
-
|
128
|
-
Parameters
|
129
|
-
----------
|
130
|
-
builder
|
131
|
-
The builder object for the simulation.
|
132
|
-
|
133
|
-
Returns
|
134
|
-
-------
|
135
|
-
The stratification configuration for this observer.
|
136
|
-
"""
|
137
|
-
return builder.configuration.stratification[self.disease]
|
112
|
+
def get_configuration_name(self) -> str:
|
113
|
+
return self.disease
|
138
114
|
|
139
115
|
def register_observations(self, builder: Builder) -> None:
|
140
116
|
"""Register stratifications and observations.
|
@@ -136,20 +136,6 @@ class MortalityObserver(PublicHealthObserver):
|
|
136
136
|
SimpleCause("other_causes", "other_causes", "cause"),
|
137
137
|
]
|
138
138
|
|
139
|
-
def get_configuration(self, builder: Builder) -> LayeredConfigTree:
|
140
|
-
"""Get the stratification configuration for this observer.
|
141
|
-
|
142
|
-
Parameters
|
143
|
-
----------
|
144
|
-
builder
|
145
|
-
The builder object for the simulation.
|
146
|
-
|
147
|
-
Returns
|
148
|
-
-------
|
149
|
-
The stratification configuration for this observer.
|
150
|
-
"""
|
151
|
-
return builder.configuration.stratification[self.get_configuration_name()]
|
152
|
-
|
153
139
|
def register_observations(self, builder: Builder) -> None:
|
154
140
|
"""Register stratifications and observations.
|
155
141
|
|
@@ -58,19 +58,6 @@ class CategoricalRiskObserver(PublicHealthObserver):
|
|
58
58
|
# Properties #
|
59
59
|
##############
|
60
60
|
|
61
|
-
@property
|
62
|
-
def configuration_defaults(self) -> dict[str, Any]:
|
63
|
-
"""A dictionary containing the defaults for any configurations managed by
|
64
|
-
this component.
|
65
|
-
"""
|
66
|
-
return {
|
67
|
-
"stratification": {
|
68
|
-
f"{self.risk}": super().configuration_defaults["stratification"][
|
69
|
-
self.get_configuration_name()
|
70
|
-
]
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
61
|
@property
|
75
62
|
def columns_required(self) -> list[str] | None:
|
76
63
|
"""The columns required by this observer."""
|
@@ -101,19 +88,8 @@ class CategoricalRiskObserver(PublicHealthObserver):
|
|
101
88
|
self.step_size = builder.time.step_size()
|
102
89
|
self.categories = builder.data.load(f"risk_factor.{self.risk}.categories")
|
103
90
|
|
104
|
-
def
|
105
|
-
|
106
|
-
|
107
|
-
Parameters
|
108
|
-
----------
|
109
|
-
builder
|
110
|
-
The builder object for the simulation.
|
111
|
-
|
112
|
-
Returns
|
113
|
-
-------
|
114
|
-
The stratification configuration for this observer.
|
115
|
-
"""
|
116
|
-
return builder.configuration.stratification[self.risk]
|
91
|
+
def get_configuration_name(self) -> str:
|
92
|
+
return self.risk
|
117
93
|
|
118
94
|
def register_observations(self, builder: Builder) -> None:
|
119
95
|
"""Register a stratification and observation.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.1
|
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
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
26
26
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
27
27
|
Classifier: Topic :: Software Development :: Libraries
|
28
28
|
License-File: LICENSE.txt
|
29
|
-
Requires-Dist: vivarium>=3.4.
|
29
|
+
Requires-Dist: vivarium>=3.4.3
|
30
30
|
Requires-Dist: layered_config_tree>=1.0.1
|
31
31
|
Requires-Dist: loguru
|
32
32
|
Requires-Dist: numpy<2.0.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
vivarium_public_health/__about__.py,sha256=RgWycPypKZS80TpSX7o41cREnG8PfguNHDHLuLyl820,487
|
2
2
|
vivarium_public_health/__init__.py,sha256=GDeeP-7OlCBwPuv_xQoB1wNmvCaFsqfTB7qnnYApm0w,1343
|
3
|
-
vivarium_public_health/_version.py,sha256=
|
3
|
+
vivarium_public_health/_version.py,sha256=NtWqZUv_8plp1gndoYX_eAqe7K65oPMh-hIvB4Evdc8,22
|
4
4
|
vivarium_public_health/utilities.py,sha256=QNXQ6fhAr1HcV-GwKw7wQLz6QyuNxqNvMA-XujKjTgs,3035
|
5
5
|
vivarium_public_health/disease/__init__.py,sha256=VUJHDLlE6ngo2qHNQUtZ8OWH5H_T7_ao-xsYKDkRmHw,443
|
6
6
|
vivarium_public_health/disease/exceptions.py,sha256=vb30IIV82OiDf2cNZCs_E2rF6mdDDHbnZSND60no5CU,97
|
@@ -25,11 +25,11 @@ vivarium_public_health/population/data_transformations.py,sha256=CEID0uLIJc0xXij
|
|
25
25
|
vivarium_public_health/population/mortality.py,sha256=Mtv45FENNY0GlPIoVd3d3pRq01aEh4cjzNXIgEe6hMo,10364
|
26
26
|
vivarium_public_health/results/__init__.py,sha256=rKUZGlRXJgEyFY4a_WJeg3XnC0l34S5guYZ0N9JJS4E,319
|
27
27
|
vivarium_public_health/results/columns.py,sha256=V-L3JgTcsk51Zx9PcUwSgaE1iZjuGyfZ8aShPjynadU,495
|
28
|
-
vivarium_public_health/results/disability.py,sha256=
|
29
|
-
vivarium_public_health/results/disease.py,sha256=
|
30
|
-
vivarium_public_health/results/mortality.py,sha256
|
28
|
+
vivarium_public_health/results/disability.py,sha256=OijmWbPkaxmMT4xJ44rWgPz67lVfcLtEloaNwnOiK_g,9459
|
29
|
+
vivarium_public_health/results/disease.py,sha256=ni599TKhV3YKQb8_rlnTVt9tIFq_SiM-z8qaoBEdO6s,11764
|
30
|
+
vivarium_public_health/results/mortality.py,sha256=9L8tphHn2BEt5sSDkvSfcAyyhsGA_xylEjTed-fv0YI,9206
|
31
31
|
vivarium_public_health/results/observer.py,sha256=ADikaV6TvHVaysWoeux_DcvmzAFT7kpD6KtRSl16SaY,7277
|
32
|
-
vivarium_public_health/results/risk.py,sha256=
|
32
|
+
vivarium_public_health/results/risk.py,sha256=bPZq2El00MZ5A6ttqA-wvbHLm4E3OZcEZOkqV_GENk4,5838
|
33
33
|
vivarium_public_health/results/simple_cause.py,sha256=ibdE6KwhDfQWntCVkOEooBcmUydEoupmd3_poHSHyu8,1007
|
34
34
|
vivarium_public_health/results/stratification.py,sha256=4I3YGHVabNAZENE7YboOtWsWU4X-8LUBJ9iwYMbpl6E,5387
|
35
35
|
vivarium_public_health/risks/__init__.py,sha256=z8DcnZGxqNVAyFZm2WAV-IVNGvrSS4izju_0DNe2Ghw,212
|
@@ -43,8 +43,8 @@ vivarium_public_health/treatment/__init__.py,sha256=wONElu9aJbBYwpYIovYPYaN_GYfV
|
|
43
43
|
vivarium_public_health/treatment/magic_wand.py,sha256=zg4I48G-l9fC6-qjvApbM1zNACJimZlX9ZZ9fdHKwvc,1985
|
44
44
|
vivarium_public_health/treatment/scale_up.py,sha256=_bsf9c_yVc7-q_-yBcXimISTUfYzPps1auH0uEf7sfQ,7048
|
45
45
|
vivarium_public_health/treatment/therapeutic_inertia.py,sha256=ZIHnpuszZwA_BkS53JbSLvpcnX_bqG2knwCUyUgkA9M,2362
|
46
|
-
vivarium_public_health-4.1.
|
47
|
-
vivarium_public_health-4.1.
|
48
|
-
vivarium_public_health-4.1.
|
49
|
-
vivarium_public_health-4.1.
|
50
|
-
vivarium_public_health-4.1.
|
46
|
+
vivarium_public_health-4.1.1.dist-info/licenses/LICENSE.txt,sha256=mN4bNLUQNcN9njYRc_3jCZkfPySVpmM6MRps104FxA4,1548
|
47
|
+
vivarium_public_health-4.1.1.dist-info/METADATA,sha256=FH3HU37jR-MEZ04qtBFZms8kDqdSop1Wc6wSFNoQVSg,4237
|
48
|
+
vivarium_public_health-4.1.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
49
|
+
vivarium_public_health-4.1.1.dist-info/top_level.txt,sha256=VVInlpzCFD0UNNhjOq_j-a29odzjwUwYFTGfvqbi4dY,23
|
50
|
+
vivarium_public_health-4.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{vivarium_public_health-4.1.0.dist-info → vivarium_public_health-4.1.1.dist-info}/top_level.txt
RENAMED
File without changes
|