Skip to content

Fix g_n year alignment in pop-growth plots and the fit table#42

Merged
jdebacker merged 1 commit into
jdebacker:prepopfrom
marcelolafleur:fix/pr1073-display-gn
Jun 26, 2026
Merged

Fix g_n year alignment in pop-growth plots and the fit table#42
jdebacker merged 1 commit into
jdebacker:prepopfrom
marcelolafleur:fix/pr1073-display-gn

Conversation

@marcelolafleur

Copy link
Copy Markdown

Follow-up on prepop. The reindex moved the pre-TP boundary growth out of g_n into g_n_preTP, and the model code (aggregates, fiscal, utils) was updated to match — but three display spots that read g_n weren't, so they're off by a year now. Doesn't touch the solution, just what's plotted and reported.

  • plot_pop_growth / plot_g_n: prepend g_n_preTP so each rate lines up with its year again.
  • model_fit_table "Pop growth rate": use g_n_preTP at t=0 (g_n[t-1] after) to stay aligned with the omega[t] moments next to it.

ruff clean; plot and table tests pass.

cc @jdebacker

@jdebacker jdebacker merged commit 1574a0b into jdebacker:prepop Jun 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants