File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
google_symptoms/delphi_google_symptoms Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ def generate_patch_dates(params: Dict) -> Dict[date, Tuple[date]]:
17
17
18
18
Parameters
19
19
----------
20
- issue_date
21
- end_date
22
- params
20
+ params: dictionary parsed from params.json
23
21
24
22
Returns
25
23
-------
26
- dict of date and tuple of date
24
+ dict(date: dict(export date range settings))
27
25
"""
28
26
issue_date = datetime .strptime (params ["patch" ]["start_issue" ], "%Y-%m-%d" )
29
27
end_date = datetime .strptime (params ["patch" ]["end_issue" ], "%Y-%m-%d" )
@@ -76,7 +74,7 @@ def generate_num_export_days(params: Dict, logger) -> [int]:
76
74
# Fetch metadata to check how recent each signal is
77
75
covidcast .use_api_key (params ["indicator" ]["api_credentials" ])
78
76
metadata = covidcast .metadata ()
79
- # Filter to only those we currently want to produce, ignore any old or deprecated signals
77
+ # Filter to only those signals we currently want to produce for `google-symptoms`
80
78
gs_metadata = metadata [(metadata .data_source == "google-symptoms" ) & (metadata .signal .isin (sensor_names ))]
81
79
82
80
num_export_days = params ["indicator" ]["num_export_days" ]
You can’t perform that action at this time.
0 commit comments