Calculate a household under several policies in one call on Modal (v2 household functions)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
調査の方向性
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-fullroute 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_usandcalculate_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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/policyengine-sim-api のほかの issue
-
Update policyengine to 6.7.3再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 半日 初心者へのやさしさ 70/100
PolicyEngine/policyengine-sim-api#823 ·
メンテナーはふだん 1 日以内に返信
-
Integration tests fail due to missing UV virtual environment setup対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
PolicyEngine/policyengine-sim-api#314 ·
メンテナーはふだん 1 日以内に返信
-
Update policyengine to 6.10.2対応中かも @policyengine が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
PolicyEngine/policyengine-sim-api#908 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PolicyEngine/policyengine-sim-api#907 ·
メンテナーはふだん 1 日以内に返信
-
Update policyengine to 6.10.1対応中かも @policyengine が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
PolicyEngine/policyengine-sim-api#905 ·
メンテナーはふだん 1 日以内に返信
PolicyEngine/policyengine-sim-api の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fossasia/visdom-dev#77 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws-cloudformation/cfn-lint#4890 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
volcengine/OpenViking#6521 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
AstrBotDevs/AstrBot#10720 ·
メンテナーはふだん 1 日以内に返信