Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#530 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, data-engineering

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
7
Fork
9
Merge trung bình
17 giờ 40 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine.py

Tất cả issue của PolicyEngine/policyengine.py

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.