Skip to content

Commit

Permalink
Merge pull request #48 from jdebacker/time_vary_rho_patch
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Oct 24, 2023
2 parents 4877bf7 + 46a8890 commit 6b8f2f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions ogzaf/demographics.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,6 @@ def get_pop_objs(E, S, T, curr_year, download=False, GraphDiag=False):
g_n_ss (scalar): steady-state population growth rate
omega_SS (Numpy array): normalized steady-state population
distribution, length S
surv_rates (Numpy array): survival rates that correspond to
each model period of life, length S
mort_rates (Numpy array): mortality rates that correspond to
each model period of life, length S
g_n_path (Numpy array): population growth rates over the time
Expand Down Expand Up @@ -1216,14 +1214,13 @@ def get_pop_objs(E, S, T, curr_year, download=False, GraphDiag=False):
output_dir=OUTPUT_DIR,
)

# return omega_path_S, g_n_ss, omega_SSfx, survival rates,
# return omega_path_S, g_n_ss, omega_SSfx,
# mort_rates_S, and g_n_path
pop_dict = {
"omega": omega_path_S.T,
"g_n_ss": g_n_ss,
"omega_SS": omega_SSfx[-S:] / omega_SSfx[-S:].sum(),
"surv_rate": 1 - mort_rates_S,
"rho": mort_rates_S,
"rho": [mort_rates_S],
"g_n": g_n_path,
"imm_rates": imm_rates_mat.T,
"omega_S_preTP": omega_S_preTP,
Expand Down
3 changes: 1 addition & 2 deletions ogzaf/ogzaf_default_parameters.json

Large diffs are not rendered by default.

0 comments on commit 6b8f2f2

Please sign in to comment.