vivarium-public-health 4.3.1__py3-none-any.whl → 4.3.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/risks/effect.py +19 -0
- {vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/METADATA +1 -1
- {vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/RECORD +7 -7
- {vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/WHEEL +0 -0
- {vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/licenses/LICENSE.txt +0 -0
- {vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "4.3.
|
1
|
+
__version__ = "4.3.2"
|
@@ -5,6 +5,7 @@ Risk Effect Models
|
|
5
5
|
|
6
6
|
"""
|
7
7
|
|
8
|
+
import warnings
|
8
9
|
from collections.abc import Callable
|
9
10
|
from typing import Any
|
10
11
|
|
@@ -26,6 +27,24 @@ class RiskEffect(ExposureEffect):
|
|
26
27
|
|
27
28
|
"""
|
28
29
|
|
30
|
+
@property
|
31
|
+
def risk(self) -> str:
|
32
|
+
warnings.warn(
|
33
|
+
"The 'risk' attribute is deprecated. Use 'entity' instead.",
|
34
|
+
DeprecationWarning,
|
35
|
+
stacklevel=2,
|
36
|
+
)
|
37
|
+
return self.entity
|
38
|
+
|
39
|
+
@risk.setter
|
40
|
+
def risk(self, value: str) -> None:
|
41
|
+
warnings.warn(
|
42
|
+
"The 'risk' attribute is deprecated. Use 'entity' instead.",
|
43
|
+
DeprecationWarning,
|
44
|
+
stacklevel=2,
|
45
|
+
)
|
46
|
+
self.entity = value
|
47
|
+
|
29
48
|
def get_name(self, risk: EntityString, target: TargetString) -> str:
|
30
49
|
return f"risk_effect.{risk.name}_on_{target}"
|
31
50
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.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,6 +1,6 @@
|
|
1
1
|
vivarium_public_health/__about__.py,sha256=RgWycPypKZS80TpSX7o41cREnG8PfguNHDHLuLyl820,487
|
2
2
|
vivarium_public_health/__init__.py,sha256=OMVtFq_K6QhpSxj1Y-pLsDeYooGI06zWR8ahqoUMcOw,1402
|
3
|
-
vivarium_public_health/_version.py,sha256=
|
3
|
+
vivarium_public_health/_version.py,sha256=yLGM4izTFYAco_KyNHOnLCDPCtERPpxlH_qI5n-sU7E,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
|
@@ -42,7 +42,7 @@ vivarium_public_health/risks/__init__.py,sha256=z8DcnZGxqNVAyFZm2WAV-IVNGvrSS4iz
|
|
42
42
|
vivarium_public_health/risks/base_risk.py,sha256=CKZM1cGYRInxiM738bMxmaNIKkPg6yX5VaWglzBzLsM,3930
|
43
43
|
vivarium_public_health/risks/data_transformations.py,sha256=JiTBBY8xyZx_idoYk-UALRdAnLE20nywcTqi0_PKaB4,1123
|
44
44
|
vivarium_public_health/risks/distributions.py,sha256=XFbGhtCT7cQRS859RIQO0XPyEK0BsK8czv2CxI8BWO4,771
|
45
|
-
vivarium_public_health/risks/effect.py,sha256=
|
45
|
+
vivarium_public_health/risks/effect.py,sha256=RhBNsKinVRIYwX0PnrpkbaI2U9HDmBPCEEQDGVh41r0,9365
|
46
46
|
vivarium_public_health/risks/implementations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py,sha256=32nvILduve34PQF1kNGlx-qAuJAL69irQm92FKwJFEQ,21305
|
48
48
|
vivarium_public_health/treatment/__init__.py,sha256=lTZhcgR0yjzlmfravIrkbwJ7zdR9aGqKVaJAn2AYyBY,313
|
@@ -50,8 +50,8 @@ vivarium_public_health/treatment/intervention.py,sha256=A7vqrIUgmMggZnSoaOIf0xYH
|
|
50
50
|
vivarium_public_health/treatment/magic_wand.py,sha256=zg4I48G-l9fC6-qjvApbM1zNACJimZlX9ZZ9fdHKwvc,1985
|
51
51
|
vivarium_public_health/treatment/scale_up.py,sha256=_bsf9c_yVc7-q_-yBcXimISTUfYzPps1auH0uEf7sfQ,7048
|
52
52
|
vivarium_public_health/treatment/therapeutic_inertia.py,sha256=ZIHnpuszZwA_BkS53JbSLvpcnX_bqG2knwCUyUgkA9M,2362
|
53
|
-
vivarium_public_health-4.3.
|
54
|
-
vivarium_public_health-4.3.
|
55
|
-
vivarium_public_health-4.3.
|
56
|
-
vivarium_public_health-4.3.
|
57
|
-
vivarium_public_health-4.3.
|
53
|
+
vivarium_public_health-4.3.2.dist-info/licenses/LICENSE.txt,sha256=mN4bNLUQNcN9njYRc_3jCZkfPySVpmM6MRps104FxA4,1548
|
54
|
+
vivarium_public_health-4.3.2.dist-info/METADATA,sha256=oyZCIq5r1mV53SjyuCtHIMN5TO8IEaBlnfo-lr8UGC8,4294
|
55
|
+
vivarium_public_health-4.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
56
|
+
vivarium_public_health-4.3.2.dist-info/top_level.txt,sha256=VVInlpzCFD0UNNhjOq_j-a29odzjwUwYFTGfvqbi4dY,23
|
57
|
+
vivarium_public_health-4.3.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{vivarium_public_health-4.3.1.dist-info → vivarium_public_health-4.3.2.dist-info}/top_level.txt
RENAMED
File without changes
|