vivarium-public-health 4.3.3__py3-none-any.whl → 4.3.5__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/population/data_transformations.py +11 -12
- {vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/METADATA +11 -28
- {vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/RECORD +7 -7
- {vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/WHEEL +0 -0
- {vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/licenses/LICENSE.txt +0 -0
- {vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "4.3.
|
1
|
+
__version__ = "4.3.5"
|
@@ -52,29 +52,28 @@ def assign_demographic_proportions(
|
|
52
52
|
if include_sex != "Both":
|
53
53
|
population_data.loc[population_data.sex != include_sex, "value"] = 0.0
|
54
54
|
|
55
|
+
year_start_groups = population_data.groupby("year_start", as_index=False)
|
55
56
|
population_data["P(sex, location, age| year)"] = (
|
56
|
-
|
57
|
-
.apply(
|
58
|
-
lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum(), include_groups=False
|
59
|
-
)
|
57
|
+
year_start_groups[year_start_groups.obj.columns]
|
58
|
+
.apply(lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum())
|
60
59
|
.reset_index(level=0)["value"]
|
61
60
|
.fillna(0.0)
|
62
61
|
)
|
63
62
|
|
63
|
+
age_year_start_groups = population_data.groupby(["age", "year_start"], as_index=False)
|
64
64
|
population_data["P(sex, location | age, year)"] = (
|
65
|
-
|
66
|
-
.apply(
|
67
|
-
lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum(), include_groups=False
|
68
|
-
)
|
65
|
+
age_year_start_groups[age_year_start_groups.obj.columns]
|
66
|
+
.apply(lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum())
|
69
67
|
.reset_index(level=0)["value"]
|
70
68
|
.fillna(0.0)
|
71
69
|
)
|
72
70
|
|
71
|
+
year_start_sex_location_groups = population_data.groupby(
|
72
|
+
["year_start", "sex", "location"], as_index=False
|
73
|
+
)
|
73
74
|
population_data["P(age | year, sex, location)"] = (
|
74
|
-
|
75
|
-
.apply(
|
76
|
-
lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum(), include_groups=False
|
77
|
-
)
|
75
|
+
year_start_sex_location_groups[year_start_sex_location_groups.obj.columns]
|
76
|
+
.apply(lambda sub_pop: sub_pop[["value"]] / sub_pop["value"].sum())
|
78
77
|
.reset_index(level=0)["value"]
|
79
78
|
.fillna(0.0)
|
80
79
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.3.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
|
@@ -26,45 +26,28 @@ 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_dependencies[loguru,numpy_lt_2,pandas,pyarrow,scipy,tables]
|
29
30
|
Requires-Dist: vivarium_build_utils<3.0.0,>=2.0.1
|
30
31
|
Requires-Dist: vivarium>=3.4.3
|
31
|
-
Requires-Dist: layered_config_tree
|
32
|
-
Requires-Dist: loguru
|
33
|
-
Requires-Dist: numpy<2.0.0
|
34
|
-
Requires-Dist: pandas>=2.2.0
|
35
|
-
Requires-Dist: scipy
|
36
|
-
Requires-Dist: tables
|
32
|
+
Requires-Dist: layered_config_tree
|
37
33
|
Requires-Dist: risk_distributions>=2.0.11
|
38
|
-
Requires-Dist: pyarrow
|
39
34
|
Provides-Extra: docs
|
40
|
-
Requires-Dist: sphinx
|
41
|
-
|
42
|
-
Requires-Dist:
|
43
|
-
Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
|
44
|
-
Requires-Dist: IPython; extra == "docs"
|
45
|
-
Requires-Dist: matplotlib; extra == "docs"
|
35
|
+
Requires-Dist: vivarium_dependencies[ipython,matplotlib,sphinx,sphinx-click]; extra == "docs"
|
36
|
+
Provides-Extra: interactive
|
37
|
+
Requires-Dist: vivarium_dependencies[interactive]; extra == "interactive"
|
46
38
|
Provides-Extra: test
|
39
|
+
Requires-Dist: vivarium_dependencies[pytest]; extra == "test"
|
47
40
|
Requires-Dist: vivarium_testing_utils; extra == "test"
|
48
|
-
Requires-Dist: pytest; extra == "test"
|
49
|
-
Requires-Dist: pytest-cov; extra == "test"
|
50
|
-
Requires-Dist: pytest-mock; extra == "test"
|
51
41
|
Requires-Dist: hypothesis; extra == "test"
|
52
42
|
Requires-Dist: pyyaml; extra == "test"
|
53
43
|
Provides-Extra: dev
|
54
|
-
Requires-Dist: sphinx
|
55
|
-
Requires-Dist:
|
56
|
-
Requires-Dist:
|
57
|
-
Requires-Dist: sphinx-autodoc-typehints; extra == "dev"
|
58
|
-
Requires-Dist: IPython; extra == "dev"
|
59
|
-
Requires-Dist: matplotlib; extra == "dev"
|
44
|
+
Requires-Dist: vivarium_dependencies[ipython,matplotlib,sphinx,sphinx-click]; extra == "dev"
|
45
|
+
Requires-Dist: vivarium_dependencies[interactive]; extra == "dev"
|
46
|
+
Requires-Dist: vivarium_dependencies[pytest]; extra == "dev"
|
60
47
|
Requires-Dist: vivarium_testing_utils; extra == "dev"
|
61
|
-
Requires-Dist: pytest; extra == "dev"
|
62
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
63
|
-
Requires-Dist: pytest-mock; extra == "dev"
|
64
48
|
Requires-Dist: hypothesis; extra == "dev"
|
65
49
|
Requires-Dist: pyyaml; extra == "dev"
|
66
|
-
Requires-Dist:
|
67
|
-
Requires-Dist: isort==5.13.2; extra == "dev"
|
50
|
+
Requires-Dist: vivarium_dependencies[lint]; extra == "dev"
|
68
51
|
Dynamic: author
|
69
52
|
Dynamic: author-email
|
70
53
|
Dynamic: classifier
|
@@ -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=NYrliYxjsS6KdKfQAwEvUhfqJXk87BHG-YA6Q3DTUIY,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
|
@@ -21,7 +21,7 @@ vivarium_public_health/plugins/parser.py,sha256=WoUisq0d-PfJtSzKYZ6C-s-fYdQpNiRB
|
|
21
21
|
vivarium_public_health/population/__init__.py,sha256=x_9rB93q64Krw-kbBDI1-_U_JsPO1_QrL03AwiFlwXI,243
|
22
22
|
vivarium_public_health/population/add_new_birth_cohorts.py,sha256=x6A60GE_F3I8AgLABNJ-2ziiUj52lAd66uX5yc2vIDI,9038
|
23
23
|
vivarium_public_health/population/base_population.py,sha256=Wu797AL13KRLhXkYni_XocJBLfhfvCVgGeas08U3tCM,18898
|
24
|
-
vivarium_public_health/population/data_transformations.py,sha256=
|
24
|
+
vivarium_public_health/population/data_transformations.py,sha256=YHbwfb40EPbXsPW-Rk1s5d61rP8fqgDtMELB7OJG3mo,22662
|
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
|
@@ -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.3.
|
47
|
-
vivarium_public_health-4.3.
|
48
|
-
vivarium_public_health-4.3.
|
49
|
-
vivarium_public_health-4.3.
|
50
|
-
vivarium_public_health-4.3.
|
46
|
+
vivarium_public_health-4.3.5.dist-info/licenses/LICENSE.txt,sha256=mN4bNLUQNcN9njYRc_3jCZkfPySVpmM6MRps104FxA4,1548
|
47
|
+
vivarium_public_health-4.3.5.dist-info/METADATA,sha256=AqoR7HJE8HzNFk3525wVzzu_SHktWYfVa6GO0leCXs4,3877
|
48
|
+
vivarium_public_health-4.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
49
|
+
vivarium_public_health-4.3.5.dist-info/top_level.txt,sha256=VVInlpzCFD0UNNhjOq_j-a29odzjwUwYFTGfvqbi4dY,23
|
50
|
+
vivarium_public_health-4.3.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{vivarium_public_health-4.3.3.dist-info → vivarium_public_health-4.3.5.dist-info}/top_level.txt
RENAMED
File without changes
|