Skip to content

Various updates - #514

Merged
dav-sonn merged 2 commits into
developfrom
pre_release_cleanup
Aug 28, 2026
Merged

Various updates#514
dav-sonn merged 2 commits into
developfrom
pre_release_cleanup

Conversation

@dav-sonn

Copy link
Copy Markdown
Collaborator

This commit restores the default simulation configuration to a shorter 2019-2022 run with a 50k population. It updates the codebook spreadsheet inputs. It also cleans up the wealth statistics schema by removing the legacy equivalised disposable income alias and renaming the S-index median field to match the codebook. Obsolete partner education enum entries were removed from Person, and the collector logic was updated to stop writing the legacy median-income output.

This commit restores the default simulation configuration to a shorter 2019-2022 run with a 50k population. It updates the codebook spreadsheet inputs. It also cleans up the wealth statistics schema by removing the legacy equivalised disposable income alias and renaming the S-index median field to match the codebook. Obsolete partner education enum entries were removed from Person, and the collector logic was updated to stop writing the legacy median-income output.

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 pull request restores the default simulation run configuration to a shorter 2019–2022 horizon with a smaller population, and aligns the wealth/income statistics outputs with the updated codebook by removing legacy/duplicate fields and renaming the S-index median output.

Changes:

  • Shorten config/default.yml default run period (2019–2022) and reduce default population size (50k).
  • Remove legacy edi_p50 output and rename S-index median field to statSIndexP50 in WealthIncomeStatistics.
  • Remove obsolete partner-education enum entries from Person.DoublesVariables and stop writing the legacy median-income alias in the collector.

Reviewed changes

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

File Description
src/main/java/simpaths/model/Person.java Removes obsolete partner-education enum entries from DoublesVariables.
src/main/java/simpaths/experiment/SimPathsCollector.java Stops writing the legacy edi_p50 median-income alias (but still triggers EDI calculation path).
src/main/java/simpaths/data/statistics/WealthIncomeStatistics.java Removes edi_p50 field/accessors and renames S-index median output field/column.
config/default.yml Restores default run settings to 2019–2022 with a 50k population.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +463 to +466
var hh_edi_cs = new CrossSection<>(model::getBenefitUnits, BenefitUnit::getEquivalisedDisposableIncomeYearly);
var hh_edi_stats = new Stats(hh_edi_cs.get()).descrStats();
wealthIncomeStats.setEdi_p50(hh_edi_stats.getPercentile(50.0));
// Median equivalised household disposable income is already reported as yHhDispEquivP50.
// The legacy edi_p50 alias has been removed to keep the output consistent with the codebook.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in commit: 2998e88.

Comment on lines +50 to +54
//Equivalised disposable income is reported as the income median yHhDispEquivP50;
//the legacy edi_p50 alias is intentionally removed to match the codebook naming rules.

//Percentiles of SIndex:
@Column(name = "SIndex_p50")
private double sIndex_p50;
@Column(name = "statSIndexP50")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in commit: 2998e88.

Drops the unused `EDI` collector wiring from `SimPathsCollector` and removes the legacy `edi_p50` output alias. The integration-test expected `WealthIncomeStatistics.csv` header is updated accordingly, including the standardized `statSIndexP50` naming and revised column layout to match current codebook-aligned output.
@dav-sonn
dav-sonn merged commit 123e516 into develop Aug 28, 2026
6 checks passed
@dav-sonn
dav-sonn deleted the pre_release_cleanup branch August 28, 2026 15:36
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