Skip to content

[flask]: /covidcast/trend endpoint #483

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

Merged
merged 10 commits into from
Apr 8, 2021

Conversation

sgratzl
Copy link
Member

@sgratzl sgratzl commented Apr 8, 2021

based on #481

adds a new custom endpoint /covidcast/trend which computes the trend for a given date and window.

e.g.

http://localhost:5000/covidcast/trend?signal=fb-survey:smoothed_cli&geo=state:ny&date=20210401&window=20200101-20210402

will result in:
image

note: I just have limited local test data, so results may vary in your system

@sgratzl sgratzl requested a review from krivard April 8, 2021 13:53
@sgratzl sgratzl self-assigned this Apr 8, 2021
@sgratzl sgratzl changed the base branch from sgratzl/flaskx to main April 8, 2021 16:25
@sgratzl sgratzl changed the base branch from main to sgratzl/flaskx April 8, 2021 16:25
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

Minor test coverage nit otherwise 👍

@sgratzl sgratzl merged commit 109b37d into sgratzl/flaskx Apr 8, 2021
@sgratzl sgratzl deleted the sgratzl/flask_covidcast_custom branch April 8, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants