Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace the python covidcast client in SirCAL #1931

Open
melange396 opened this issue Jan 11, 2024 · 0 comments
Open

replace the python covidcast client in SirCAL #1931

melange396 opened this issue Jan 11, 2024 · 0 comments

Comments

@melange396
Copy link
Contributor

latest_data = covidcast.signal(
data_source, row["signal"],
start_day=datetime.now() - timedelta(days = 14),
end_day=datetime.now(),
geo_type=row["geo_type"]
)

SirCAL uses the python covidcast client which has some issues including inefficiency, as it makes individual http requests for each of the days in the specified range (and also even in the deprecated asynchronous mode, though they are ~simultaneous).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant