Skip to content

removes custom population projections - #252

Merged
tomjemmett merged 4 commits into
mainfrom
remove_current_custom_demographic_projections
May 5, 2026
Merged

removes custom population projections#252
tomjemmett merged 4 commits into
mainfrom
remove_current_custom_demographic_projections

Conversation

@tomjemmett

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 09:16
@tomjemmett
tomjemmett requested a review from a team as a code owner May 5, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the bespoke/custom population projection paths from the model-data extraction pipeline, leaving provider projections to be generated solely from the standard population projections tables.

Changes:

  • Removed the custom demographic factors generation for RD8 and R0A66 and stopped unioning custom variants into the extracted demographic factors output.
  • Refactored extract_custom_birth_factors to accept multiple custom projections, and updated extract() to currently pass an empty list (disabling custom birth factor generation).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/nhp/data/model_data/demographic_factors.py Deletes custom demographic factor builders and stops appending custom projection variants to the extracted output.
src/nhp/data/model_data/birth_factors.py Generalizes custom birth factor extraction to a list-driven API and disables custom projection generation by passing an empty list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/nhp/data/model_data/demographic_factors.py
Comment thread src/nhp/data/model_data/birth_factors.py
Comment thread src/nhp/data/model_data/birth_factors.py Outdated
Comment thread src/nhp/data/model_data/birth_factors.py Outdated
tomjemmett and others added 2 commits May 5, 2026 10:21
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tomjemmett tomjemmett linked an issue May 5, 2026 that may be closed by this pull request
@tomjemmett tomjemmett self-assigned this May 5, 2026
@tomjemmett
tomjemmett merged commit 28e2236 into main May 5, 2026
3 checks passed
@tomjemmett
tomjemmett deleted the remove_current_custom_demographic_projections branch May 5, 2026 16:04
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.

Remove custom population projections

3 participants