From 218841991b833dbfb9d4ea1b6963b442e4494c77 Mon Sep 17 00:00:00 2001 From: george haff Date: Tue, 18 Nov 2025 11:12:11 -0500 Subject: [PATCH 1/2] workaround to use new HSA geo_type w/ legacy client --- sir_complainsalot/delphi_sir_complainsalot/check_source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sir_complainsalot/delphi_sir_complainsalot/check_source.py b/sir_complainsalot/delphi_sir_complainsalot/check_source.py index 840575cbf..c9fa1c377 100644 --- a/sir_complainsalot/delphi_sir_complainsalot/check_source.py +++ b/sir_complainsalot/delphi_sir_complainsalot/check_source.py @@ -8,6 +8,7 @@ import pandas as pd covidcast.covidcast._ASYNC_CALL = True # pylint: disable=protected-access +covidcast.covidcast.VALID_GEO_TYPES.add("hsa_nci") # workaround to use new geo_type w/ legacy client @dataclass class Complaint: From fb2288dfdd8720cd687d0514ef2422989af57090 Mon Sep 17 00:00:00 2001 From: george haff Date: Tue, 18 Nov 2025 12:56:02 -0500 Subject: [PATCH 2/2] fix for silly closure/scoping in covidcast client --- sir_complainsalot/delphi_sir_complainsalot/check_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sir_complainsalot/delphi_sir_complainsalot/check_source.py b/sir_complainsalot/delphi_sir_complainsalot/check_source.py index c9fa1c377..380142301 100644 --- a/sir_complainsalot/delphi_sir_complainsalot/check_source.py +++ b/sir_complainsalot/delphi_sir_complainsalot/check_source.py @@ -73,7 +73,7 @@ def check_source(data_source, meta, params, grace, logger): # pylint: disable=t end_day=datetime.now().strftime("%Y-%m-%d"), geo_type=row["geo_type"]) - latest_data = covidcast.signal( + latest_data = covidcast.covidcast.signal( data_source, row["signal"], start_day=datetime.now() - timedelta(days = 14), end_day=datetime.now(),