Skip to content

Commit e3046ee

Browse files
authored
Merge pull request #1653 from cmu-delphi/release/indicators_v0.3.17_utils_v0.3.5
Release covidcast-indicators 0.3.17
2 parents 8fb5d9a + f160459 commit e3046ee

25 files changed

+943
-537
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.3.16
2+
current_version = 0.3.17
33
commit = True
44
message = chore: bump covidcast-indicators to {new_version}
55
tag = False

ansible/ansible-deploy-staging.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
local_action: stat path="templates/{{ indicator }}-params-prod.json.j2"
2828
register: template
2929

30+
- name: Check to see if we have a secrets template to send.
31+
local_action: stat path="templates/{{ indicator }}-secrets-prod.py.j2"
32+
register: template_secrets
33+
3034
- name: Set production params file.
3135
copy:
3236
src: files/{{ indicator }}-params-prod.json
@@ -42,3 +46,11 @@
4246
owner: "{{ runtime_user }}"
4347
group: "{{ runtime_user }}"
4448
when: template.stat.exists
49+
50+
- name: Set production secrets template.
51+
template:
52+
src: templates/{{ indicator }}-secrets-prod.py.j2
53+
dest: "{{ indicators_runtime_dir }}/{{ indicator }}/secrets.py"
54+
owner: "{{ runtime_user }}"
55+
group: "{{ runtime_user }}"
56+
when: template_secrets.stat.exists

ansible/ansible-deploy.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
local_action: stat path="templates/{{ indicator }}-params-prod.json.j2"
2828
register: template
2929

30+
- name: Check to see if we have a secrets template to send.
31+
local_action: stat path="templates/{{ indicator }}-secrets-prod.py.j2"
32+
register: template_secrets
33+
3034
- name: Set production params file.
3135
copy:
3236
src: files/{{ indicator }}-params-prod.json
@@ -42,3 +46,11 @@
4246
owner: "{{ runtime_user }}"
4347
group: "{{ runtime_user }}"
4448
when: template.stat.exists
49+
50+
- name: Set production secrets template.
51+
template:
52+
src: templates/{{ indicator }}-secrets-prod.py.j2
53+
dest: "{{ indicators_runtime_dir }}/{{ indicator }}/secrets.py"
54+
owner: "{{ runtime_user }}"
55+
group: "{{ runtime_user }}"
56+
when: template_secrets.stat.exists
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"common": {
3+
"export_dir": "./receiving",
4+
"log_exceptions": false
5+
},
6+
"indicator": {
7+
"input_dir": "./retrieve_files",
8+
"start_date": "2020-02-01",
9+
"end_date": null,
10+
"drop_date": null,
11+
"n_backfill_days": 70,
12+
"n_waiting_days": 3,
13+
"write_se": false,
14+
"obfuscated_prefix": "foo_obfuscated",
15+
"parallel": false,
16+
"geos": ["state", "msa", "hrr", "county"],
17+
"weekday": [true, false],
18+
"ftp_credentials": {
19+
"host": "{{ claims_hosp_ftp_host }}",
20+
"user": "{{ claims_hosp_ftp_user }}",
21+
"pass": "{{ claims_hosp_ftp_password }}",
22+
"port": 2222
23+
}
24+
},
25+
"validation": {
26+
"common": {
27+
"data_source": "hospital-admissions",
28+
"span_length": 14,
29+
"min_expected_lag": {"all": "3"},
30+
"max_expected_lag": {"all": "4"},
31+
"dry_run": true,
32+
"suppressed_errors": []
33+
},
34+
"static": {
35+
"minimum_sample_size": 5,
36+
"missing_se_allowed": true,
37+
"missing_sample_size_allowed": true
38+
},
39+
"dynamic": {
40+
"ref_window_size": 7
41+
}
42+
}
43+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class claims:
2+
HOST = 'ftp.delphi.cmu.edu'
3+
USER = {{ claims_hosp_ftp_user }}
4+
PASS = {{ claims_hosp_ftp_password }}
5+
PORT = 2222
6+
7+
8+
class covidcast:
9+
HOST = "delphi.midas.cs.cmu.edu"
10+
USER = {{ claims_hosp_midas_user }}
11+
PASS = {{ claims_hosp_midas_password }}

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

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -43,100 +43,6 @@
4343
"maintainers": ["U01AP8GSWG3","U01069KCRS7"],
4444
"retired-signals": ["completely_home_prop", "full_time_work_prop", "part_time_work_prop", "median_home_dwell_time", "completely_home_prop_7dav", "full_time_work_prop_7dav", "part_time_work_prop_7dav", "median_home_dwell_time_7dav"]
4545
},
46-
"fb-survey": {
47-
"max_age": 3,
48-
"maintainers": ["U01069KCRS7"],
49-
"retired-signals": [
50-
"smoothed_anxious_5d", "smoothed_wanxious_5d",
51-
"smoothed_depressed_5d", "smoothed_wdepressed_5d",
52-
"smoothed_felt_isolated_5d", "smoothed_wfelt_isolated_5d",
53-
"smoothed_large_event_1d", "smoothed_wlarge_event_1d",
54-
"smoothed_restaurant_1d", "smoothed_wrestaurant_1d",
55-
"smoothed_shop_1d", "smoothed_wshop_1d",
56-
"smoothed_spent_time_1d", "smoothed_wspent_time_1d",
57-
"smoothed_travel_outside_state_5d", "smoothed_wtravel_outside_state_5d",
58-
"smoothed_work_outside_home_1d", "smoothed_wwork_outside_home_1d",
59-
"smoothed_wearing_mask", "smoothed_wwearing_mask",
60-
"smoothed_vaccine_likely_local_health", "smoothed_wvaccine_likely_local_health",
61-
"smoothed_others_masked", "smoothed_wothers_masked",
62-
"smoothed_wanted_test_14d", "smoothed_wwanted_test_14d",
63-
"smoothed_covid_vaccinated_or_accept", "smoothed_wcovid_vaccinated_or_accept",
64-
"smoothed_accept_covid_vaccine", "smoothed_waccept_covid_vaccine",
65-
"smoothed_hesitancy_reason_allergic", "smoothed_whesitancy_reason_allergic",
66-
"smoothed_hesitancy_reason_not_recommended", "smoothed_whesitancy_reason_not_recommended",
67-
"smoothed_hesitancy_reason_distrust_vaccines", "smoothed_whesitancy_reason_distrust_vaccines",
68-
"smoothed_hesitancy_reason_health_condition", "smoothed_whesitancy_reason_health_condition",
69-
"smoothed_hesitancy_reason_pregnant", "smoothed_whesitancy_reason_pregnant",
70-
"smoothed_vaccine_likely_friends", "smoothed_wvaccine_likely_friends",
71-
"smoothed_vaccine_likely_who", "smoothed_wvaccine_likely_who",
72-
"smoothed_vaccine_likely_govt_health", "smoothed_wvaccine_likely_govt_health",
73-
"smoothed_vaccine_likely_politicians", "smoothed_wvaccine_likely_politicians",
74-
"smoothed_vaccine_likely_doctors", "smoothed_wvaccine_likely_doctors",
75-
"smoothed_felt_isolated_7d", "smoothed_wfelt_isolated_7d",
76-
"smoothed_worried_become_ill", "smoothed_wworried_become_ill",
77-
"smoothed_received_2_vaccine_doses", "smoothed_wreceived_2_vaccine_doses",
78-
"smoothed_hesitancy_reason_dislike_vaccines", "smoothed_whesitancy_reason_dislike_vaccines",
79-
"smoothed_inperson_school_fulltime", "smoothed_winperson_school_fulltime",
80-
"smoothed_inperson_school_parttime", "smoothed_winperson_school_parttime",
81-
"smoothed_vaccinate_children", "smoothed_wvaccinate_children",
82-
["smoothed_vaccine_barrier_appointment_time_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_appointment_time_tried", "msa", "county", "state"],
83-
["smoothed_vaccine_barrier_childcare_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_childcare_tried", "msa", "county", "state"],
84-
["smoothed_vaccine_barrier_document_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_document_tried", "msa", "county", "state"],
85-
["smoothed_vaccine_barrier_eligible_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_eligible_tried", "msa", "county", "state"],
86-
["smoothed_vaccine_barrier_language_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_language_tried", "msa", "county", "state"],
87-
["smoothed_vaccine_barrier_no_appointments_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_no_appointments_tried", "msa", "county", "state"],
88-
["smoothed_vaccine_barrier_none_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_none_tried", "msa", "county", "state"],
89-
["smoothed_vaccine_barrier_technical_difficulties_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_technical_difficulties_tried", "msa", "county", "state"],
90-
["smoothed_vaccine_barrier_technology_access_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_technology_access_tried", "msa", "county", "state"],
91-
["smoothed_vaccine_barrier_time_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_time_tried", "msa", "county", "state"],
92-
["smoothed_vaccine_barrier_travel_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_travel_tried", "msa", "county", "state"],
93-
["smoothed_vaccine_barrier_type_tried", "msa", "county", "state"], ["smoothed_wvaccine_barrier_type_tried", "msa", "county", "state"],
94-
["smoothed_try_vaccinate_1m", "hrr"], ["smoothed_wtry_vaccinate_1m", "hrr"],
95-
["smoothed_try_vaccinate_1m", "msa"], ["smoothed_wtry_vaccinate_1m", "msa"],
96-
["smoothed_dontneed_reason_dont_spend_time", "hrr"], ["smoothed_wdontneed_reason_dont_spend_time", "hrr", "msa"],
97-
["smoothed_dontneed_reason_had_covid", "hrr"], ["smoothed_wdontneed_reason_had_covid", "hrr", "msa"],
98-
["smoothed_dontneed_reason_not_beneficial", "hrr"], ["smoothed_wdontneed_reason_not_beneficial", "hrr", "msa"],
99-
["smoothed_dontneed_reason_not_high_risk", "hrr"], ["smoothed_wdontneed_reason_not_high_risk", "hrr", "msa"],
100-
["smoothed_dontneed_reason_not_serious", "hrr"], ["smoothed_wdontneed_reason_not_serious", "hrr", "msa"],
101-
["smoothed_dontneed_reason_other", "hrr"], ["smoothed_wdontneed_reason_other", "hrr", "msa"],
102-
["smoothed_dontneed_reason_precautions", "hrr"], ["smoothed_wdontneed_reason_precautions", "hrr", "msa"],
103-
"smoothed_screening_tested_positive_14d", "smoothed_wscreening_tested_positive_14d",
104-
"smoothed_travel_outside_state_7d", "smoothed_wtravel_outside_state_7d",
105-
"smoothed_belief_vaccinated_mask_unnecessary", "smoothed_wbelief_vaccinated_mask_unnecessary",
106-
"smoothed_belief_children_immune", "smoothed_wbelief_children_immune",
107-
"smoothed_received_2_vaccine_doses", "smoothed_wreceived_2_vaccine_doses",
108-
"smoothed_vaccine_barrier_eligible", "smoothed_wvaccine_barrier_eligible",
109-
"smoothed_vaccine_barrier_no_appointments", "smoothed_wvaccine_barrier_no_appointments",
110-
"smoothed_vaccine_barrier_appointment_time", "smoothed_wvaccine_barrier_appointment_time",
111-
"smoothed_vaccine_barrier_technical_difficulties", "smoothed_wvaccine_barrier_technical_difficulties",
112-
"smoothed_vaccine_barrier_document", "smoothed_wvaccine_barrier_document",
113-
"smoothed_vaccine_barrier_technology_access", "smoothed_wvaccine_barrier_technology_access",
114-
"smoothed_vaccine_barrier_travel", "smoothed_wvaccine_barrier_travel",
115-
"smoothed_vaccine_barrier_language", "smoothed_wvaccine_barrier_language",
116-
"smoothed_vaccine_barrier_childcare", "smoothed_wvaccine_barrier_childcare",
117-
"smoothed_vaccine_barrier_time", "smoothed_wvaccine_barrier_time",
118-
"smoothed_vaccine_barrier_type", "smoothed_wvaccine_barrier_type",
119-
"smoothed_vaccine_barrier_none", "smoothed_wvaccine_barrier_none",
120-
"smoothed_vaccine_barrier_appointment_location", "smoothed_wvaccine_barrier_appointment_location",
121-
"smoothed_vaccine_barrier_other", "smoothed_wvaccine_barrier_other",
122-
"smoothed_vaccine_barrier_eligible_has", "smoothed_wvaccine_barrier_eligible_has",
123-
"smoothed_vaccine_barrier_no_appointments_has", "smoothed_wvaccine_barrier_no_appointments_has",
124-
"smoothed_vaccine_barrier_appointment_time_has", "smoothed_wvaccine_barrier_appointment_time_has",
125-
"smoothed_vaccine_barrier_technical_difficulties_has", "smoothed_wvaccine_barrier_technical_difficulties_has",
126-
"smoothed_vaccine_barrier_document_has", "smoothed_wvaccine_barrier_document_has",
127-
"smoothed_vaccine_barrier_technology_access_has", "smoothed_wvaccine_barrier_technology_access_has",
128-
"smoothed_vaccine_barrier_travel_has", "smoothed_wvaccine_barrier_travel_has",
129-
"smoothed_vaccine_barrier_language_has", "smoothed_wvaccine_barrier_language_has",
130-
"smoothed_vaccine_barrier_childcare_has", "smoothed_wvaccine_barrier_childcare_has",
131-
"smoothed_vaccine_barrier_time_has", "smoothed_wvaccine_barrier_time_has",
132-
"smoothed_vaccine_barrier_type_has", "smoothed_wvaccine_barrier_type_has",
133-
"smoothed_vaccine_barrier_none_has", "smoothed_wvaccine_barrier_none_has",
134-
"smoothed_vaccine_barrier_appointment_location_has", "smoothed_wvaccine_barrier_appointment_location_has",
135-
"smoothed_vaccine_barrier_other_has", "smoothed_wvaccine_barrier_other_has",
136-
["smoothed_vaccine_barrier_appointment_location_tried", "county", "state"], ["smoothed_wvaccine_barrier_appointment_location_tried", "county", "state"],
137-
["smoothed_vaccine_barrier_other_tried", "county", "state"], ["smoothed_wvaccine_barrier_other_tried", "county", "state"]
138-
]
139-
},
14046
"quidel": {
14147
"max_age":6,
14248
"maintainers": ["U01AP8GSWG3","U01069KCRS7"],

ansible/vars.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ changehc_sftp_host: "{{ vault_changehc_sftp_host }}"
2626
changehc_sftp_port: "{{ vault_changehc_sftp_port }}"
2727
changehc_sftp_user: "{{ vault_changehc_sftp_user }}"
2828
changehc_sftp_password: "{{ vault_changehc_sftp_password }}"
29+
# claims_hosp
30+
claims_hosp_ftp_user: "{{ vault_claims_hosp_ftp_user }}"
31+
claims_hosp_ftp_password: "{{ vault_claims_hosp_ftp_password }}"
32+
claims_hosp_midas_user: "{{ vault_claims_hosp_midas_user }}"
33+
claims_hosp_midas_password: "{{ vault_claims_hosp_midas_password }}"
2934
# NCHS
3035
nchs_mortality_token: "{{ vault_nchs_mortality_token }}"
3136
# SirCAL

0 commit comments

Comments
 (0)