-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Update demographics.py
to use the new UN API format
#931
Comments
Great - thanks for keeping up with this @SeaCelo ! |
@rickecon and @SeaCelo Here's an idea: Since the UN data files are quite small (150KB gets you almost 100 years of the population distribution by age) and since relatively few users will be able to get a UN API token, what if we create repo in EAPD-DRB calls "UN Population Data". This will have a README briefly explaining the files and then directories for each OG-XXX model, which contain 5 CSV files with the relevant data for each country calibration. We can then change the Some advantages of this:
Let me know your thoughts. |
Addressed in PR #936 using the methods suggested in the previous comment. |
The API for the UN population data used in
demographics.py
is being updated to use bearer tokens. The system is still not live, but the new format will look like this (requires a value foryour_token_here
):As soon as the API is live, and the method to generate the bearer token is published, I will update and test the code.
The text was updated successfully, but these errors were encountered: