Skip to content

Commit

Permalink
Merge pull request #949 from jdebacker/demog_updates
Browse files Browse the repository at this point in the history
Update documentation of `demographics.py`
  • Loading branch information
jdebacker authored Jul 24, 2024
2 parents 35f27be + 03b6cce commit 7206399
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/book/content/api/demographics.rst
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions docs/book/content/api/public_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ogcore/demographics.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def get_un_data(
"458": "MYS",
"356": "IND",
"826": "UK",
"360": "IDN",
"608": "PHL",
}
un_variable_dict = {
"68": "fertility_rates",
Expand Down

0 comments on commit 7206399

Please sign in to comment.