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

Calculate a household under several policies in one call on Modal (v2 household functions)

オープン
#902 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@anth-volk がすでに取り組んでいます。

2026年10月22日 から。

  • #903 @anth-volk による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

Start by reading the open pull request #903, which is already working on this issue. The issue describes the v2 household functions, version manifest, release validation, and image checks, but does not name specific files or tests. Done means both country functions, manifest and validation changes, and the pre-merge image check meet the listed behavior.

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

説明

What

Add Modal functions that calculate one household under several policies in one call, for the US and the UK, in the versioned v2 Modal application:

  • A versioned household contract: a household in the Public API's situation shape, with optional axes; one to ten policies per request, so a baseline and its reform are calculated together; a schema version; the PolicyEngine.py bundle the caller expects; an optional SPM selection; and an option to add every missing variable, as the Public API's /calculate-full route does. The result carries each policy's calculated household, warnings and SPM receipt, the applied SPM selection and the bundle provenance, or a typed failure.
  • calculate_household_us and calculate_household_uk, which reproduce the Public API's household calculation (input preparation, unrecognized-input errors and their order, deprecated-input warnings, value formatting, SPM handling) and run in their own image with no datasets and no secrets, sized for large households with axes.
  • Schema version 2 of the v2 version manifest, which records for each country whether it can run economy reports and which function calculates its households. The comparison adapter gives the report coordinator only countries marked economy-capable.
  • Release validation that calls each household function with a small household before the manifest names it.
  • The pre-merge image check builds every v2 image (report coordinator, country workers, household functions) and imports their entry points.

Why

Household calculations run inside the Public API's web process today. Moving them to Modal lets the Simulation Entrypoint calculate and store households the same way it handles economy reports, and computes a baseline and its reform in a single call. Nothing calls these functions yet: they are deployed but unused until the Simulation Entrypoint gains household routes.

主要言語
Python
スター
1
フォーク
1
平均マージ
1日 17時間
マージ済み PR(30日)
60

環境構築

はじめの一歩

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

PolicyEngine/policyengine-sim-api のほかの issue

PolicyEngine/policyengine-sim-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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