vivarium-public-health 2.2.0__tar.gz → 2.2.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/CHANGELOG.rst +8 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/PKG-INFO +1 -1
- vivarium_public_health-2.2.2/src/vivarium_public_health/_version.py +1 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/population/data_transformations.py +14 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/treatment/scale_up.py +7 -22
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/PKG-INFO +1 -1
- vivarium_public_health-2.2.0/src/vivarium_public_health/_version.py +0 -1
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.gitattributes +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.github/CODEOWNERS +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.github/pull_request_template.md +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.github/workflows/build.yml +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.github/workflows/deploy.yml +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.gitignore +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.pylintrc +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.readthedocs.yml +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.zenodo.json +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/CODE_OF_CONDUCT.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/CONTRIBUTING.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/LICENSE.txt +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/MANIFEST.in +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/README.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/Makefile +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/nitpick-exceptions +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/_static/style.css +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/_templates/layout.html +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/model.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/models.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/special_disease.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/state.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/disease/transition.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/disability.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/disease.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/mortality.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/risk.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/metrics/stratification.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/delay.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/disease.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/intervention.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/magic_wand_components.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/observer.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/mslt/population.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/plugins/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/plugins/parser.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/population/add_new_birth_cohorts.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/population/base_population.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/population/data_transformations.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/population/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/population/mortality.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/base_risk.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/data_transformations.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/distributions.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/effect.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/implementations/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/implementations/low_birth_weight_and_short_gestation.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/risks/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/testing/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/testing/mock_artifact.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/testing/utils.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/treatment/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/treatment/magic_wand.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/treatment/scale_up.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/treatment/therapeutic_inertia.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/utilities.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/conf.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/tutorials/index.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/tutorials/risk_exposure.rst +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/pyproject.toml +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/setup.cfg +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/setup.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/__about__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/model.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/models.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/special_disease.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/state.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/disease/transition.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/disability.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/disease.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/mortality.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/risk.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/metrics/stratification.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/delay.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/disease.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/intervention.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/magic_wand_components.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/observer.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/mslt/population.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/plugins/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/plugins/parser.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/population/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/population/add_new_birth_cohorts.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/population/base_population.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/population/mortality.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/base_risk.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/data_transformations.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/distributions.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/effect.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/implementations/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/risks/implementations/low_birth_weight_and_short_gestation.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/testing/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/testing/mock_artifact.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/testing/utils.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/treatment/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/treatment/magic_wand.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/treatment/therapeutic_inertia.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/utilities.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/SOURCES.txt +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/dependency_links.txt +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/not-zip-safe +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/requires.txt +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health.egg-info/top_level.txt +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/conftest.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/disease/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/disease/test_disease.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/disease/test_special_disease.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_categorical_risk_observer.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_disability.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_disability_observer.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_disease_observer.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_mortality_observer.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_stratification.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/plugins/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/plugins/test_parser.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/population/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/population/conftest.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/population/test_add_new_birth_cohort.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/population/test_base_population.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/population/test_data_transformations.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/conftest.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/test_base_risk.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/test_data_transformations.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/test_distributions.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/test_effect.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/test_utilities.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/treatment/__init__.py +0 -0
- {vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tox.ini +0 -0
@@ -1,3 +1,11 @@
|
|
1
|
+
**2.2.2 - 2/28/24**
|
2
|
+
|
3
|
+
- Fix bug in rescale_binned_proportions to update midpoitn for new age bins
|
4
|
+
|
5
|
+
**2.2.1 - 2/26/24**
|
6
|
+
|
7
|
+
- Update LinearScaleUp configuration defaults
|
8
|
+
|
1
9
|
**2.2.0 - 02/14/24**
|
2
10
|
|
3
11
|
- Implement CausesConfigurationParser to parse causes configuration into DiseaseModel components
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 2.2.
|
3
|
+
Version: 2.2.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
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "2.2.2"
|
@@ -138,7 +138,21 @@ def rescale_binned_proportions(
|
|
138
138
|
pop_data.loc[padding_bin.index, columns_to_scale] += remainder
|
139
139
|
|
140
140
|
pop_data.loc[min_bin.index, "age_start"] = age_start
|
141
|
+
pop_data.loc[min_bin.index, "age"] = float(
|
142
|
+
(
|
143
|
+
pop_data.loc[min_bin.index, "age_start"].iloc[0]
|
144
|
+
+ pop_data.loc[min_bin.index, "age_end"].iloc[0]
|
145
|
+
)
|
146
|
+
/ 2
|
147
|
+
)
|
141
148
|
pop_data.loc[padding_bin.index, "age_end"] = age_start
|
149
|
+
pop_data.loc[padding_bin.index, "age"] = float(
|
150
|
+
(
|
151
|
+
pop_data.loc[padding_bin.index, "age_start"].iloc[0]
|
152
|
+
+ pop_data.loc[padding_bin.index, "age_end"].iloc[0]
|
153
|
+
)
|
154
|
+
/ 2
|
155
|
+
)
|
142
156
|
|
143
157
|
max_bin = sub_pop[(sub_pop["age_end"] > age_end) & (age_end >= sub_pop["age_start"])]
|
144
158
|
padding_bin = sub_pop[sub_pop["age_start"] == float(max_bin["age_end"].iloc[0])]
|
@@ -6,14 +6,13 @@ Linear Scale-Up Model
|
|
6
6
|
This module contains tools for applying a linear scale-up to an intervention
|
7
7
|
|
8
8
|
"""
|
9
|
-
from datetime import datetime
|
10
9
|
from typing import Any, Callable, Dict, Tuple
|
11
10
|
|
12
11
|
import pandas as pd
|
13
12
|
from vivarium import Component
|
14
13
|
from vivarium.framework.engine import Builder
|
15
14
|
from vivarium.framework.lookup import LookupTable
|
16
|
-
from vivarium.framework.time import Time
|
15
|
+
from vivarium.framework.time import Time
|
17
16
|
from vivarium.framework.values import Pipeline
|
18
17
|
|
19
18
|
from vivarium_public_health.utilities import EntityString
|
@@ -36,16 +35,10 @@ class LinearScaleUp(Component):
|
|
36
35
|
configuration:
|
37
36
|
treatment_scale_up:
|
38
37
|
start:
|
39
|
-
date:
|
40
|
-
year: 2020
|
41
|
-
month: 1
|
42
|
-
day: 1
|
38
|
+
date: "2020-01-01"
|
43
39
|
value: 0.0
|
44
40
|
end:
|
45
|
-
date:
|
46
|
-
year: 2020
|
47
|
-
month: 12
|
48
|
-
day: 31
|
41
|
+
date: "2020-12-31"
|
49
42
|
value: 0.9
|
50
43
|
|
51
44
|
"""
|
@@ -53,8 +46,8 @@ class LinearScaleUp(Component):
|
|
53
46
|
CONFIGURATION_DEFAULTS = {
|
54
47
|
"treatment": {
|
55
48
|
"date": {
|
56
|
-
"start": "
|
57
|
-
"end": "
|
49
|
+
"start": "2020-01-01",
|
50
|
+
"end": "2020-12-31",
|
58
51
|
},
|
59
52
|
"value": {
|
60
53
|
"start": "data",
|
@@ -114,17 +107,9 @@ class LinearScaleUp(Component):
|
|
114
107
|
return builder.time.clock()
|
115
108
|
|
116
109
|
# noinspection PyMethodMayBeStatic
|
117
|
-
def get_scale_up_dates(self, builder: Builder) -> Tuple[
|
110
|
+
def get_scale_up_dates(self, builder: Builder) -> Tuple[pd.Timestamp, pd.Timestamp]:
|
118
111
|
scale_up_config = builder.configuration[self.configuration_key]["date"]
|
119
|
-
|
120
|
-
def get_endpoint(endpoint_type: str) -> datetime:
|
121
|
-
if scale_up_config[endpoint_type] == endpoint_type:
|
122
|
-
endpoint = get_time_stamp(builder.configuration.time[endpoint_type])
|
123
|
-
else:
|
124
|
-
endpoint = get_time_stamp(scale_up_config[endpoint_type])
|
125
|
-
return endpoint
|
126
|
-
|
127
|
-
return get_endpoint("start"), get_endpoint("end")
|
112
|
+
return pd.Timestamp(scale_up_config["start"]), pd.Timestamp(scale_up_config["end"])
|
128
113
|
|
129
114
|
def get_scale_up_values(self, builder: Builder) -> Tuple[LookupTable, LookupTable]:
|
130
115
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vivarium_public_health
|
3
|
-
Version: 2.2.
|
3
|
+
Version: 2.2.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 +0,0 @@
|
|
1
|
-
__version__ = "2.2.0"
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/.github/pull_request_template.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/_templates/layout.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/api_reference/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/docs/source/tutorials/index.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/src/vivarium_public_health/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/disease/test_special_disease.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_disability.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_disease_observer.py
RENAMED
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/metrics/test_stratification.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vivarium_public_health-2.2.0 → vivarium_public_health-2.2.2}/tests/risks/test_distributions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|