Closed pabloarosado closed 3 months ago
Quick links (staging server): Site | Admin | Wizard |
---|
Login: ssh owid@staging-site-add-map-brackets-tool
Edited: 2024-07-01 14:42:43 UTC Execution time: 14.76 seconds
@paarriagadap I'll merge for now, so we can all start playing around with it. But feel free to give it a try. You can add bugs and suggestions in this issue: https://github.com/owid/etl/issues/2915
Summary
This PR creates a wizard page to ease the task of creating map brackets, although it still has several important limitations.
Description
For now, the map bracketer does the following:
While creating it, a few possibly useful things were also created:
Explorer
object that let's you easily read, modify, and write an explorer file. For now it only works with indicator-based explorers.For reviewers
etlwiz
on your local machine and play around with it. I won't have much more time in the coming weeks to improve it, but maybe there are some small changes to make it useful.owid-content
, which is expected to be located in the same folder asetl
). You can do as many changes as you want just to play around with it, and then dogit restore .
inowid-content
to revert changes.apps/wizard/app_pages/map_brackets.py
, in case you see some low hanging fruit to make it better. There are lots of TODOs (I'll handle them when/if they become important). I think we could easily figure out a better scoring system for the brackets, but I didn't have much time to play with it (check_get_bracket_score
). Maybe we could use a part of a data meeting to brainstorm this score.etl/grapher_model.py
and the functionload_mappable_regions_and_ids
inapps/wizard/app_pages/map_brackets.py
? I needed to get the mapping of entity ids to country names, but I couldn't find an easier way. Feel free to also inspectetl/explorer_helpers.py
, in case you find the idea ofExplorer
useful.Thanks!