Commit ad9d408
Fix double-weight application in sanity tests (#572)
* Fix double-weight application in sanity tests (#571)
sim.calculate("household_weight").sum() returns weighted sum of weights
(sum of weight²) because MicroSeries embeds weights. Use .values.sum()
to get the raw sum of weights for household/person count checks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Trigger CI
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 13140e5 commit ad9d408
2 files changed
Lines changed: 7 additions & 8 deletions
File tree
- changelog.d
- policyengine_us_data/tests/test_datasets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
132 | | - | |
133 | | - | |
| 131 | + | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| |||
0 commit comments