vivarium-public-health 1.0.0__py3-none-any.whl → 1.0.2__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/disease/state.py +1 -2
- vivarium_public_health/metrics/disease.py +2 -1
- {vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/METADATA +5 -5
- {vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/RECORD +8 -8
- {vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/WHEEL +1 -1
- {vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/LICENSE.txt +0 -0
- {vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.0.
|
1
|
+
__version__ = "1.0.2"
|
@@ -499,10 +499,9 @@ class DiseaseState(BaseDiseaseState):
|
|
499
499
|
return disability_weight
|
500
500
|
|
501
501
|
def load_excess_mortality_rate_data(self, builder):
|
502
|
-
only_morbid = builder.data.load(f"cause.{self._model}.restrictions")["yld_only"]
|
503
502
|
if "excess_mortality_rate" in self._get_data_functions:
|
504
503
|
return self._get_data_functions["excess_mortality_rate"](builder, self.cause)
|
505
|
-
elif
|
504
|
+
elif builder.data.load(f"cause.{self._model}.restrictions")["yld_only"]:
|
506
505
|
return 0
|
507
506
|
else:
|
508
507
|
return builder.data.load(f"{self.cause_type}.{self.cause}.excess_mortality_rate")
|
@@ -91,7 +91,8 @@ class DiseaseObserver:
|
|
91
91
|
filter_string = (
|
92
92
|
f'{self.previous_state_column_name} == "{transition.from_state}" '
|
93
93
|
f'and {self.disease} == "{transition.to_state}" '
|
94
|
-
f"and tracked==True"
|
94
|
+
f"and tracked==True "
|
95
|
+
f'and alive == "alive"'
|
95
96
|
)
|
96
97
|
builder.results.register_observation(
|
97
98
|
name=f"{transition}_event_count",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium-public-health
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.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
|
@@ -26,14 +26,14 @@ 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
|
29
|
+
Requires-Dist: vivarium >=1.2.1
|
30
30
|
Requires-Dist: numpy
|
31
31
|
Requires-Dist: pandas
|
32
32
|
Requires-Dist: scipy
|
33
33
|
Requires-Dist: tables
|
34
|
-
Requires-Dist: risk-distributions
|
34
|
+
Requires-Dist: risk-distributions >=2.0.11
|
35
35
|
Provides-Extra: dev
|
36
|
-
Requires-Dist: sphinx
|
36
|
+
Requires-Dist: sphinx >=4.0 ; extra == 'dev'
|
37
37
|
Requires-Dist: sphinx-rtd-theme ; extra == 'dev'
|
38
38
|
Requires-Dist: sphinx-click ; extra == 'dev'
|
39
39
|
Requires-Dist: IPython ; extra == 'dev'
|
@@ -42,7 +42,7 @@ Requires-Dist: pytest ; extra == 'dev'
|
|
42
42
|
Requires-Dist: pytest-mock ; extra == 'dev'
|
43
43
|
Requires-Dist: hypothesis ; extra == 'dev'
|
44
44
|
Provides-Extra: docs
|
45
|
-
Requires-Dist: sphinx
|
45
|
+
Requires-Dist: sphinx >=4.0 ; extra == 'docs'
|
46
46
|
Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
|
47
47
|
Requires-Dist: sphinx-click ; extra == 'docs'
|
48
48
|
Requires-Dist: IPython ; extra == 'docs'
|
@@ -1,16 +1,16 @@
|
|
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=Y3LSfRioSl2xch70pq_ULlvyECXyEtN3krVaWeGyaxk,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=Kx_9WKRgKxeGAk-62vpWiyMrCw6vY3eKT3aYnHqYZ2M,7636
|
7
7
|
vivarium_public_health/disease/models.py,sha256=MdpzLooa_HcHgJjEJ46gcUtf9TdcNDpKSCUKf26uFxo,3694
|
8
8
|
vivarium_public_health/disease/special_disease.py,sha256=-qE7hb-WKE_wkKWtmRKYe6FgMRtIUkjtwRRjKCufwcU,14156
|
9
|
-
vivarium_public_health/disease/state.py,sha256=
|
9
|
+
vivarium_public_health/disease/state.py,sha256=yOqKAAYx3KrERihm9TyfX3JS1EJu0V3Ds9eNxTFMKZc,19738
|
10
10
|
vivarium_public_health/disease/transition.py,sha256=NO7q708Rf268VqPCKluuli6PjQL8neMAL2DLzSa0GZg,4600
|
11
11
|
vivarium_public_health/metrics/__init__.py,sha256=bWAvvdCm_7RPIazo12qFohA2x5-_EV6ceV8IhKS37sk,209
|
12
12
|
vivarium_public_health/metrics/disability.py,sha256=Xgve93wrq45ErSERu59qiwlR7MhWRGodFOsXxZoUfDU,3841
|
13
|
-
vivarium_public_health/metrics/disease.py,sha256=
|
13
|
+
vivarium_public_health/metrics/disease.py,sha256=WrBYLcla3Dm4D-oAcZ3k4vDSR_O3nw_A6LtZ1ReMag4,4541
|
14
14
|
vivarium_public_health/metrics/mortality.py,sha256=llZ_fWidi7FzCCYecLgeN2EZ873LE4X9gu4deGhj0bc,4253
|
15
15
|
vivarium_public_health/metrics/risk.py,sha256=YN6ADadFUACJt-aZsYTxHKh53HnRlumKnJr3_kz6kF0,3795
|
16
16
|
vivarium_public_health/metrics/stratification.py,sha256=nFZzcM3UzUSiBcka6RHXjnfgPCPh6d_bM-xuma8yDxU,4374
|
@@ -40,8 +40,8 @@ vivarium_public_health/treatment/__init__.py,sha256=wONElu9aJbBYwpYIovYPYaN_GYfV
|
|
40
40
|
vivarium_public_health/treatment/magic_wand.py,sha256=QR4YNyUGGX7jw57uu7tuuF_zpFXhVfDAa16UgBidZYA,1594
|
41
41
|
vivarium_public_health/treatment/scale_up.py,sha256=cK_ZERRJbHaWqnjwkVJerue4ORTOjNRmjAsWdPGMxCU,7439
|
42
42
|
vivarium_public_health/treatment/therapeutic_inertia.py,sha256=CTvG1zZJcJ2-blKsZjrfedgkmHGyLrBjYtQ_qNpphlM,2223
|
43
|
-
vivarium_public_health-1.0.
|
44
|
-
vivarium_public_health-1.0.
|
45
|
-
vivarium_public_health-1.0.
|
46
|
-
vivarium_public_health-1.0.
|
47
|
-
vivarium_public_health-1.0.
|
43
|
+
vivarium_public_health-1.0.2.dist-info/LICENSE.txt,sha256=mN4bNLUQNcN9njYRc_3jCZkfPySVpmM6MRps104FxA4,1548
|
44
|
+
vivarium_public_health-1.0.2.dist-info/METADATA,sha256=ovKe6bcz0lgha6-IDGB8yhV7vdGU8ygSYvHYuc3EQRw,3388
|
45
|
+
vivarium_public_health-1.0.2.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
|
46
|
+
vivarium_public_health-1.0.2.dist-info/top_level.txt,sha256=VVInlpzCFD0UNNhjOq_j-a29odzjwUwYFTGfvqbi4dY,23
|
47
|
+
vivarium_public_health-1.0.2.dist-info/RECORD,,
|
{vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{vivarium_public_health-1.0.0.dist-info → vivarium_public_health-1.0.2.dist-info}/top_level.txt
RENAMED
File without changes
|