From 6402fa69ca561057df09d558937b9c4ceb317445 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Wed, 24 Jul 2024 10:42:26 -0400 Subject: [PATCH 1/3] add IDN and PHL to dict --- ogcore/demographics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ogcore/demographics.py b/ogcore/demographics.py index a3eab5333..24fe75518 100644 --- a/ogcore/demographics.py +++ b/ogcore/demographics.py @@ -115,6 +115,8 @@ def get_un_data( "458": "MYS", "356": "IND", "826": "UK", + "360": "IDN", + "608": "PHL", } un_variable_dict = { "68": "fertility_rates", From 6362d8e359b4219356e4a105d420b4fda5ed2721 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Wed, 24 Jul 2024 10:42:57 -0400 Subject: [PATCH 2/3] add demog api file --- docs/book/content/api/demographics.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/book/content/api/demographics.rst diff --git a/docs/book/content/api/demographics.rst b/docs/book/content/api/demographics.rst new file mode 100644 index 000000000..8ae05304f --- /dev/null +++ b/docs/book/content/api/demographics.rst @@ -0,0 +1,13 @@ +.. _demographics: + +Demographics Functions +======================= + +**demographics.py modules** + +ogcore.demographics +------------------------------------------ + +.. automodule:: ogcore.demographics + :members: get_un_data, get_fert, get_mort, get_pop, pop_rebin, get_imm_rates, + immsolve, get_pop_objs, pre_pop_solve From 03b6ccebbb5546dd78919e65cd434d12750d1c3e Mon Sep 17 00:00:00 2001 From: jdebacker Date: Wed, 24 Jul 2024 10:45:38 -0400 Subject: [PATCH 3/3] add demog to api toc --- docs/book/content/api/public_api.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/book/content/api/public_api.rst b/docs/book/content/api/public_api.rst index b4ddbfa3f..5a158a83d 100644 --- a/docs/book/content/api/public_api.rst +++ b/docs/book/content/api/public_api.rst @@ -12,6 +12,7 @@ There is also a link to the source code for each documented member. :maxdepth: 1 aggregates + demographics elliptical_u_est execute firm