Skip to content

Commit 5b36ff2

Browse files
authored
Merge pull request #1334 from cmu-delphi/preemptive_signal_update
changes to signals in rate-limit exempt list
2 parents ea84e37 + bbda56e commit 5b36ff2

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

integrations/server/test_api_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_multiples_allowed_signal_two_multiples(self):
6969
def test_multiples_non_allowed_signal(self):
7070
"""Test requests with 2 multiples and non-allowed dashboard signal"""
7171
params = {
72-
"signal": "hospital-admissions:smoothed_adj_covid19_from_claims",
72+
"signal": "hospital-admissions:smoothed_covid19",
7373
"time_type": "day",
7474
"geo_type": "state",
7575
"geo_value": "pa,ny",
@@ -83,7 +83,7 @@ def test_multiples_non_allowed_signal(self):
8383
def test_multiples_mixed_allowed_signal_two_multiples(self):
8484
"""Test requests with 2 multiples and mixed-allowed dashboard signal"""
8585
params = {
86-
"signal": "fb-survey:smoothed_wcli,hospital-admissions:smoothed_adj_covid19_from_claims",
86+
"signal": "fb-survey:smoothed_wcli,hospital-admissions:smoothed_covid19",
8787
"time_type": "day",
8888
"geo_type": "state",
8989
"geo_value": "pa",

src/server/endpoints/covidcast_utils/dashboard_signals.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ def __new__(cls):
3030
with open(module_dir / 'descriptions.raw.txt', 'r') as f:
3131
for desc in yaml.safe_load_all(f):
3232
srcsigs.append( (desc['Id'], desc['Signal']) )
33+
if 'Overrides' in desc:
34+
for sub_geo in desc['Overrides']:
35+
sub_signal = desc['Overrides'][sub_geo]
36+
srcsigs.append( (sub_signal['Id'], sub_signal['Signal']) )
3337

3438
source_id = None
3539
with open(module_dir / 'questions.raw.txt', 'r') as f:

src/server/endpoints/covidcast_utils/descriptions.raw.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ ExtendedColorScale: true
6363
Levels: [nation, state, county]
6464
Overrides:
6565
County:
66-
Id: dsew-cpr
67-
Signal: confirmed_admissions_covid_1d_prop_7dav
66+
Id: hospital-admissions
67+
Signal: smoothed_adj_covid19_from_claims
6868

6969

7070

@@ -96,4 +96,14 @@ Signal: deaths_7dav_incidence_prop
9696
SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on data from Johns Hopkins University
9797

9898

99-
Description: This data shows the number of COVID-19 deaths newly reported each day. The signal is based on COVID-19 death counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/).
99+
Description: This data shows the number of COVID-19 deaths newly reported each day. The signal is based on COVID-19 death counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/).
100+
---
101+
Name: COVID Deaths (NCHS)
102+
Id: nchs-mortality
103+
Signal: deaths_covid_incidence_prop
104+
105+
106+
SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on NCHS mortality data.
107+
108+
109+
Description: This data shows the number of COVID-19 deaths newly reported each week. The signal is based on COVID-19 death counts compiled and made public by [the National Center for Health Statistics](https://www.cdc.gov/nchs/nvss/vsrr/COVID19/index.htm).

0 commit comments

Comments
 (0)