Skip to content

fix: sync Python models with Rust output + SPI persons-only support#7

Merged
nikhilwoodruff merged 4 commits intomainfrom
dataset-param
Apr 2, 2026
Merged

fix: sync Python models with Rust output + SPI persons-only support#7
nikhilwoodruff merged 4 commits intomainfrom
dataset-param

Conversation

@nikhilwoodruff
Copy link
Copy Markdown
Contributor

Summary

  • Sync SimulationResult Python model with Rust JsonOutput struct (adds hbai_incomes, baseline_poverty, reform_poverty)
  • Add --persons-only flag for SPI datasets in Python engine
  • Aggregate SPI person-level records into SimulationResult with zeroed benefit fields
  • Update TypeScript types to match
  • Bump version to 0.5.1

Test plan

  • FRS simulation tested locally — passes
  • SPI simulation tested locally — passes with correct revenue/tax aggregates

…-only support

The Python SimulationResult model was out of sync with the Rust JsonOutput struct
(hbai_incomes and poverty headcounts were missing). Also adds --persons-only flag
for SPI datasets and aggregates person-level records into SimulationResult.
@nikhilwoodruff nikhilwoodruff merged commit bd17d89 into main Apr 2, 2026
1 check 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.

1 participant