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

Remove hard-coding from get_geo_signal_combos #1471

Merged
merged 3 commits into from
Jan 19, 2022
Merged

Conversation

qx-teo
Copy link
Contributor

@qx-teo qx-teo commented Jan 19, 2022

Description

Uses covidcast/meta to find source-signal pairings, rather than hardcoding values. covidcast/meta stores sources under different names (e.g. quidel_covid_ag instead of quidel). We use a request call to get around this.
Issue: how to resolve the db_source quidel mapping to multiple sources quidel_covid_ag and quidel_flu?

Changelog

  • datafetcher.py

Fixes

Uses covidcast/meta to find source-signal pairings. Issue: how to resolve the db_source quidel mapping to multiple sources quidel_covid_ag and quidel_flu?
@qx-teo qx-teo marked this pull request as draft January 19, 2022 06:06
@qx-teo qx-teo marked this pull request as ready for review January 19, 2022 06:12
@qx-teo qx-teo marked this pull request as draft January 19, 2022 06:12
Previously, keys weren't unique but values are. Swopped this to fix the issue.
@qx-teo qx-teo marked this pull request as ready for review January 19, 2022 15:25
@qx-teo qx-teo requested a review from nmdefries January 19, 2022 15:28
Copy link
Contributor

@nmdefries nmdefries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@krivard krivard merged commit 88476b1 into main Jan 19, 2022
@krivard krivard deleted the fix_geosigcombo_hardcoding branch January 19, 2022 22:05
qx-teo added a commit that referenced this pull request Jan 20, 2022
#1470 mocked out requests.get call, but #1471 uses another requests.get call that did not get mocked properly. We check which call this is and provide the apporpriate mocked response.
@qx-teo qx-teo mentioned this pull request Jan 20, 2022
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

Successfully merging this pull request may close these issues.

[Validator] Extract source subdivisions from /covidcast/meta instead of hard-coding
3 participants