Commit d2d6c09
Fix SOI uprating dtype error (#602)
* Fix SOI dtype error and ensure non-negative retirement/SS values
1. soi.py: Cast SOI "Value" column to float before uprating multiplication,
fixing TypeError on newer pandas that reject float-into-int64 assignment.
2. extended_cps.py: Add defensive np.maximum(pred_values, 0) clip in
_splice_cps_only_predictions for retirement contribution and SS
sub-component variables, preventing negative values from surviving
entity-level aggregation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove defensive clip — apply_retirement_constraints already handles this
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent dd3455a commit d2d6c09
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
0 commit comments