vivarium-public-health 2.3.1__py3-none-any.whl → 2.3.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vivarium_public_health/_version.py +1 -1
- vivarium_public_health/metrics/mortality.py +14 -10
- {vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/METADATA +2 -2
- {vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/RECORD +7 -7
- {vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/LICENSE.txt +0 -0
- {vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/WHEEL +0 -0
- {vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.3.
|
1
|
+
__version__ = "2.3.3"
|
@@ -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,18 +86,11 @@ 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
|
-
self.causes_of_death
|
82
|
-
cause.state_id for cause in
|
83
|
-
]
|
84
|
-
self.required_death_columns = ["alive", "exit_time"]
|
85
|
-
self.required_yll_columns = [
|
86
|
-
"alive",
|
87
|
-
"cause_of_death",
|
88
|
-
"exit_time",
|
89
|
-
"years_of_life_lost",
|
92
|
+
self.causes_of_death += [
|
93
|
+
cause.state_id for cause in cause_components if cause.has_excess_mortality
|
90
94
|
]
|
91
95
|
if not self.config.aggregate:
|
92
96
|
for cause_of_death in self.causes_of_death:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 2.3.
|
3
|
+
Version: 2.3.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
|
@@ -28,7 +28,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
28
28
|
License-File: LICENSE.txt
|
29
29
|
Requires-Dist: vivarium >=2.0.0
|
30
30
|
Requires-Dist: loguru
|
31
|
-
Requires-Dist: numpy
|
31
|
+
Requires-Dist: numpy <2.0.0
|
32
32
|
Requires-Dist: pandas
|
33
33
|
Requires-Dist: scipy
|
34
34
|
Requires-Dist: tables
|
@@ -1,6 +1,6 @@
|
|
1
1
|
vivarium_public_health/__about__.py,sha256=RgWycPypKZS80TpSX7o41cREnG8PfguNHDHLuLyl820,487
|
2
2
|
vivarium_public_health/__init__.py,sha256=tomMOl3PI7O8GdxDWGBiBjT0Bwd31GpyQTYTzwIv108,361
|
3
|
-
vivarium_public_health/_version.py,sha256=
|
3
|
+
vivarium_public_health/_version.py,sha256=s0EEVOzZFl_WT6PzFxk9cgtfsNGRuqeXrX3fgGq9Ogs,22
|
4
4
|
vivarium_public_health/utilities.py,sha256=_X9sZQ7flsi2sVWQ9zrf8GJw8QwZsPZm3NUjx1gu7bM,2555
|
5
5
|
vivarium_public_health/disease/__init__.py,sha256=RuuiRcvAJfX9WQGt_WZZjxN7Cu3E5rMTmuaRS-UaFPM,419
|
6
6
|
vivarium_public_health/disease/model.py,sha256=9Ru3mg3UUp3h1W0y-1xkWjQBgxqSq-LXM0ByiEcNmGA,8332
|
@@ -11,7 +11,7 @@ vivarium_public_health/disease/transition.py,sha256=Or5nucRzeGG-UuE_CGkPZ9qE35-E
|
|
11
11
|
vivarium_public_health/metrics/__init__.py,sha256=bWAvvdCm_7RPIazo12qFohA2x5-_EV6ceV8IhKS37sk,209
|
12
12
|
vivarium_public_health/metrics/disability.py,sha256=zm0vAG00wj44CHjYGdT2_pebgARa3XXIerrR06t80rc,3984
|
13
13
|
vivarium_public_health/metrics/disease.py,sha256=_WQYjd6FRrxRs1Oj8NR9ZmcbXVvsHqX_hods10hwHzU,4546
|
14
|
-
vivarium_public_health/metrics/mortality.py,sha256=
|
14
|
+
vivarium_public_health/metrics/mortality.py,sha256=B1AX-N4aO1Jd2NEJ_yMC1NHaDr4pEXmQxNm5kXoLz8w,4826
|
15
15
|
vivarium_public_health/metrics/risk.py,sha256=ANwgwpasX-5t0OHMQysV8p_cM86NL2bV6za1FM0JR88,3201
|
16
16
|
vivarium_public_health/metrics/stratification.py,sha256=_ChQy8yeP09wFKne4UPPiUEfCKDM6UGfHl4moKCjoNQ,4612
|
17
17
|
vivarium_public_health/mslt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -42,8 +42,8 @@ vivarium_public_health/treatment/__init__.py,sha256=wONElu9aJbBYwpYIovYPYaN_GYfV
|
|
42
42
|
vivarium_public_health/treatment/magic_wand.py,sha256=iPKFN3VjfiMy_XvN94UqM-FUrGuI0ULwmOdAGdOepYQ,1979
|
43
43
|
vivarium_public_health/treatment/scale_up.py,sha256=EkuEAmKaW7AvPWDqDa9WJ2Iy_yiKFytsJu8HVli5Lrg,7078
|
44
44
|
vivarium_public_health/treatment/therapeutic_inertia.py,sha256=VwZ7t90zzfGoBusduIvcE4lDe5zTvzmHiUNB3u2I52Y,2339
|
45
|
-
vivarium_public_health-2.3.
|
46
|
-
vivarium_public_health-2.3.
|
47
|
-
vivarium_public_health-2.3.
|
48
|
-
vivarium_public_health-2.3.
|
49
|
-
vivarium_public_health-2.3.
|
45
|
+
vivarium_public_health-2.3.3.dist-info/LICENSE.txt,sha256=mN4bNLUQNcN9njYRc_3jCZkfPySVpmM6MRps104FxA4,1548
|
46
|
+
vivarium_public_health-2.3.3.dist-info/METADATA,sha256=KPeMMgLVCQbINIyZatOBh7gOpOqWIxOSpa7144Oocuo,3597
|
47
|
+
vivarium_public_health-2.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
48
|
+
vivarium_public_health-2.3.3.dist-info/top_level.txt,sha256=VVInlpzCFD0UNNhjOq_j-a29odzjwUwYFTGfvqbi4dY,23
|
49
|
+
vivarium_public_health-2.3.3.dist-info/RECORD,,
|
{vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/LICENSE.txt
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-2.3.1.dist-info → vivarium_public_health-2.3.3.dist-info}/top_level.txt
RENAMED
File without changes
|