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

Rework aggregate script, fixes #2495 #2507

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Rework aggregate script, fixes #2495 #2507

merged 1 commit into from
Feb 10, 2022

Conversation

abhidg
Copy link
Contributor

@abhidg abhidg commented Feb 10, 2022

  • Make script modular by splitting transformation, upload, and
    aggregation pipeline steps.
  • Simplify merge with JHU data by translating country names to
    country codes and using them instead of mapping different naming
    conventions.
  • Drop count_documents() calculation as that can be obtained from
    the casecount aggregation
  • Drop requests dependency as pandas.read_csv() can fetch from URLs
  • Add pytest as dev dependency for CI
  • Use local geocoding dictionary instead of fetching from GitHub
  • Add unit tests

This fixes #2495, which was caused by a mismatch between country
names which led to missing lat/lon information which was then
ignored by the map. Also fixes a bug where country values were set
incorrectly in regional/latest.json.

* Make script modular by splitting transformation, upload, and
  aggregation pipeline steps.
* Simplify merge with JHU data by translating country names to
  country codes and using country codes instead of mapping different
  naming conventions for countries.
* Drop count_documents() calculation as that can be obtained from
  the casecount aggregation
* Drop requests dependency as pandas.read_csv() can fetch from URLs
* Add pytest as dev dependency for CI
* Use local geocoding dictionary instead of fetching from GitHub
* Add unit tests

This fixes #2495, which was caused by a mismatch between country
names. This led to missing lat/lon information which was then
ignored by the map. Also fixes a bug where country values were set
incorrectly in regional/latest.json.
@abhidg abhidg merged commit 16f413f into main Feb 10, 2022
@abhidg abhidg deleted the 2495-aggregates branch February 10, 2022 16:44
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.

Some countries do not show up in map index view
2 participants