Skip to content

Commit c47808b

Browse files
authored
Merge pull request #1460 from cmu-delphi/release/indicators_v0.2.20_utils_v0.2.9
Release covidcast-indicators 0.2.20
2 parents 5ed605c + df7d0b4 commit c47808b

File tree

17 files changed

+99
-42
lines changed

17 files changed

+99
-42
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.19
2+
current_version = 0.2.20
33
commit = True
44
message = chore: bump covidcast-indicators to {new_version}
55
tag = False

.github/workflows/python-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.event.pull_request.draft == false
1717
strategy:
1818
matrix:
19-
packages: [_delphi_utils_python, changehc, claims_hosp, combo_cases_and_deaths, covid_act_now, doctor_visits, google_symptoms, hhs_hosp, hhs_facilities, jhu, nchs_mortality, nowcast, quidel, quidel_covidtest, safegraph_patterns, sir_complainsalot, usafacts]
19+
packages: [_delphi_utils_python, changehc, claims_hosp, combo_cases_and_deaths, doctor_visits, google_symptoms, hhs_hosp, hhs_facilities, jhu, nchs_mortality, nowcast, quidel, quidel_covidtest, safegraph_patterns, sir_complainsalot, usafacts]
2020
defaults:
2121
run:
2222
working-directory: ${{ matrix.packages }}

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Keep in sync with '.github/workflows/python-ci.yml'.
1010
- TODO: #527 Get this list automatically from python-ci.yml at runtime.
1111
*/
12-
def indicator_list = ["changehc", "claims_hosp", "covid_act_now", "facebook", "google_symptoms", "hhs_hosp", "jhu", "nchs_mortality", "quidel", "quidel_covidtest", "safegraph_patterns", "sir_complainsalot", "usafacts"]
12+
def indicator_list = ["changehc", "claims_hosp", "facebook", "google_symptoms", "hhs_hosp", "jhu", "nchs_mortality", "quidel", "quidel_covidtest", "safegraph_patterns", "sir_complainsalot", "usafacts"]
1313
def build_package = [:]
1414
def deploy_staging = [:]
1515
def deploy_production = [:]

_delphi_utils_python/.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.8
2+
current_version = 0.2.9
33
commit = True
44
message = chore: bump delphi_utils to {new_version}
55
tag = False

_delphi_utils_python/delphi_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
from .nancodes import Nans
1616
from .weekday import Weekday
1717

18-
__version__ = "0.2.8"
18+
__version__ = "0.2.9"

_delphi_utils_python/delphi_utils/validator/datafetcher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ def get_geo_signal_combos(data_source):
111111
Cross references based on combinations reported available by COVIDcast metadata.
112112
"""
113113
# Maps data_source name with what's in the API, lists used in case of multiple names
114+
# pylint: disable=fixme
115+
# TODO: Extract this mapping from meta response instead of hard-coding
116+
# https://github.com/cmu-delphi/covidcast-indicators/issues/1457
114117
source_signal_mappings = {
115-
'chng': ['chng-cli', 'chng-covid'],
116118
'indicator-combination': ['indicator-combination-cases-deaths'],
117119
'quidel': ['quidel-covid-ag'],
118120
'safegraph': ['safegraph-weekly']

_delphi_utils_python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="delphi_utils",
29-
version="0.2.8",
29+
version="0.2.9",
3030
description="Shared Utility Functions for Indicators",
3131
long_description=long_description,
3232
long_description_content_type="text/markdown",

_delphi_utils_python/tests/validator/test_datafetcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def test_make_date_filter(self):
2121
assert not date_filter(FILENAME_REGEX.match("20200620_a_b.csv"))
2222
assert not date_filter(FILENAME_REGEX.match("202006_a_b.csv"))
2323

24+
# pylint: disable=fixme
25+
# TODO: mock out the advanced meta endpoint /covidcast/meta as well
26+
# https://github.com/cmu-delphi/covidcast-indicators/issues/1456
2427
@mock.patch("covidcast.metadata")
2528
def test_get_geo_signal_combos(self, mock_metadata):
2629
"""Test that the geo signal combos are correctly pulled from the covidcast metadata."""

ansible/templates/sir_complainsalot-params-prod.json.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@
102102
"max_age":16,
103103
"maintainers": []
104104
},
105-
"covid-act-now": {
106-
"max_age":9,
107-
"maintainers": []
108-
},
109105
"hhs": {
110106
"max_age":8,
111107
"maintainers": []

facebook/delphiFacebook/R/contingency_indicators.R

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,17 @@ get_aggs <- function() {
7373
## Mask wearing and distancing
7474
"pct_wearing_mask_5d", "c_mask_often", compute_binary, jeffreys_binary,
7575
"pct_wearing_mask_7d", "c_mask_often_7d", compute_binary, jeffreys_binary,
76+
"pct_others_masked", "c_others_masked", compute_binary, jeffreys_binary,
7677
"pct_others_masked_public", "c_others_masked_public", compute_binary, jeffreys_binary,
7778
"pct_others_distanced_public", "c_others_distanced_public", compute_binary, jeffreys_binary,
7879

7980
"pct_cli", "hh_p_cli", compute_household_binary, jeffreys_count,
8081
"pct_ili", "hh_p_ili", compute_household_binary, jeffreys_count,
8182
"pct_hh_cmnty_cli", "hh_community_yes", compute_binary, jeffreys_binary,
83+
"pct_nohh_cmnty_cli", "community_yes", compute_binary, jeffreys_binary,
8284
"pct_direct_contact", "c_direct_contact", compute_binary, jeffreys_binary,
85+
"pct_avoid_contact", "c_avoid_contact", compute_binary, jeffreys_binary,
86+
"pct_avoid_contact_7d", "c_avoid_contact_7d", compute_binary, jeffreys_binary,
8387

8488
# symptoms
8589
"pct_symp_fever", "symp_fever", compute_binary, jeffreys_binary,
@@ -303,8 +307,6 @@ get_aggs <- function() {
303307
"pct_race_treated_fairly_healthcare", "b_race_treated_fairly_healthcare", compute_binary, jeffreys_binary,
304308
"pct_delayed_care_cost", "b_delayed_care_cost", compute_binary, jeffreys_binary,
305309

306-
"pct_worried_catch_covid", "mh_worried_catch_covid", compute_binary, jeffreys_binary,
307-
308310
# topics want to learn about
309311
"pct_want_info_covid_treatment", "i_want_info_covid_treatment", compute_binary, jeffreys_binary,
310312
"pct_want_info_vaccine_access", "i_want_info_vaccine_access", compute_binary, jeffreys_binary,
@@ -355,6 +357,8 @@ get_aggs <- function() {
355357
"pct_anxious_7d", "mh_anxious_7d", compute_binary, jeffreys_binary,
356358
"pct_depressed_7d", "mh_depressed_7d", compute_binary, jeffreys_binary,
357359
"pct_felt_isolated_7d", "mh_isolated_7d", compute_binary, jeffreys_binary,
360+
# wave 11
361+
"pct_worried_catch_covid", "mh_worried_catch_covid", compute_binary, jeffreys_binary,
358362

359363
# travel outside state
360364
# pre-wave 10
@@ -420,7 +424,11 @@ get_aggs <- function() {
420424
"pct_vaccine_barrier_type_tried", "v_vaccine_barrier_type_tried", compute_binary, jeffreys_binary,
421425
"pct_vaccine_barrier_none_tried", "v_vaccine_barrier_none_tried", compute_binary, jeffreys_binary,
422426
"pct_vaccine_barrier_appointment_location_tried", "v_vaccine_barrier_appointment_location_tried", compute_binary, jeffreys_binary,
423-
"pct_vaccine_barrier_other_tried", "v_vaccine_barrier_other_tried", compute_binary, jeffreys_binary
427+
"pct_vaccine_barrier_other_tried", "v_vaccine_barrier_other_tried", compute_binary, jeffreys_binary,
428+
429+
# schooling
430+
"pct_inperson_school_fulltime", "s_inperson_school_fulltime", compute_binary, jeffreys_binary,
431+
"pct_inperson_school_parttime", "s_inperson_school_parttime", compute_binary, jeffreys_binary
424432
)
425433

426434
aggs <- create_aggs_product(regions, groups, indicators)

0 commit comments

Comments
 (0)