Calculate and store households through the v2 household functions

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

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

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

評価

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

調査の方向性

Start with the Simulation Entrypoint's existing tables for simulations, reports, runs and household outputs, plus the route that records a Modal call ending, and the v2 Modal household functions. The /v2/household-calculations endpoint and the household report flow are the public contract to match. Done means a household calculation can be created, dispatched to the household function, polled to success or failure with spm_config and spm_provenance returned, and a staging check passes after promotion. This is multi-part design work, so confirm scope with maintainers before coding.

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

説明

The Simulation Entrypoint has tables for simulations, reports, runs and household outputs, a route on which Modal reports that a call ended, and v2 Modal household functions, but nothing calculates a household through them yet. The Public API's /v2/household-calculations and household reports need the Simulation Entrypoint to:

  • accept a household calculation (one stored household under one policy, for a catalog version and year), record it as a simulation run, start the household function's Modal call, and let the caller poll it until it succeeds or fails, with the calculated household, its warnings, the SPM selection it applied (spm_config) and its SPM receipt (spm_provenance);
  • carry the household's saved SPM choice to the household function;
  • store a household report as a report and report runs whose baseline and reform simulation runs share one Modal call;
  • record each call's outcome when the household function reports that its call ended, with the safety check covering calls that never report and runs left dispatching;
  • check on every staging deployment, after its revision is promoted, that a household calculation succeeds end to end.

Without these, household calculations cannot move from the Public API's in-process calculation to the v2 workers.

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

環境構築

はじめの一歩

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

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

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

似ている issue

Python の issue をもっと見る

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

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