Skip to content

Commit 9a767c4

Browse files
committed
fn docs
1 parent a587959 commit 9a767c4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

google_symptoms/delphi_google_symptoms/date_utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ def generate_patch_dates(params: Dict) -> Dict[date, Tuple[date]]:
1717
1818
Parameters
1919
----------
20-
issue_date
21-
end_date
22-
params
20+
params: dictionary parsed from params.json
2321
2422
Returns
2523
-------
26-
dict of date and tuple of date
24+
dict(date: dict(export date range settings))
2725
"""
2826
issue_date = datetime.strptime(params["patch"]["start_issue"], "%Y-%m-%d")
2927
end_date = datetime.strptime(params["patch"]["end_issue"], "%Y-%m-%d")
@@ -76,7 +74,7 @@ def generate_num_export_days(params: Dict, logger) -> [int]:
7674
# Fetch metadata to check how recent each signal is
7775
covidcast.use_api_key(params["indicator"]["api_credentials"])
7876
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`
8078
gs_metadata = metadata[(metadata.data_source == "google-symptoms") & (metadata.signal.isin(sensor_names))]
8179

8280
num_export_days = params["indicator"]["num_export_days"]

0 commit comments

Comments
 (0)