Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Map the stored WIC take-up draw (would_claim_wic) onto takes_up_wic_if_eligible when loading US data

クローズ
#530 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start with PolicyEngineUSLatest._build_simulation_from_dataset, then trace managed_microsimulation and create_datasets to compare their loading behavior. Check the manifest-pinned dataset and the microcosm#1026 findings for the stored column and expected WIC totals. Done means the legacy draw maps for every dataset year when the new input is absent, while an existing takes_up_wic_if_eligible column takes precedence.

索引モデルが issue の本文から書いたものです。

説明

policyengine-us 2.2.1 (this package's US pin) has no variable would_claim_wic. Its WIC take-up input is takes_up_wic_if_eligible (Person, MONTH, default_value = True), and wic is defined_for it.

The certified US default, populace-us-2024-spm-20260915 (pinned in src/policyengine/data/bundle/manifest.json), stores the seeded take-up draw as would_claim_wic only. Both US load paths skip a stored column the engine does not define, so the draw is dropped and every WIC-eligible person takes WIC up:

  • PolicyEngineUSLatest._build_simulation_from_dataset sets inputs only for columns in system.variables;
  • managed_microsimulation and create_datasets hand the file to policyengine_us.Microsimulation, whose loader skips unknown columns.

PolicyEngine/microcosm#1026 measured 2024 WIC at $11.52B with the draw ignored and $6.63B with it restored (published runtime: $6.68B), and 12.65M vs 6.66M recipients.

Fix (option 2 of microcosm#1026): when loading, if the data stores would_claim_wic, the engine does not define it but does define takes_up_wic_if_eligible, and the data does not already store takes_up_wic_if_eligible, set the live input from the stored draw for every month of every dataset year. The mapping should retire itself once the data carries the new name.

主要言語
Python
スター
7
フォーク
9
平均マージ
14時間 49分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine.py のほかの issue

PolicyEngine/policyengine.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。