Add simulation and report definitions to the simulation schema
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
研究方向
Start by reading the Simulation Entrypoint's simulation schema and the Public API table definitions it references. Define the simulations and reports tables with the described foreign keys and legacy ID columns; check the schema or migration entry point to confirm both tables are created empty and can support a repeatable later migration.
由索引模型根據 Issue 內容生成。
描述
The Simulation Entrypoint's simulation schema needs the definitions that later runs and results attach to:
simulation.simulations: what to run, independent of model versions. A simulation is one policy (null for current law) applied to one population, either a household or an economy named by a region code such asstate/cawith an optional dataset name (null means the region's default dataset in whichever catalog version a run uses), with an optional dynamic.simulation.reports: which two simulations a report compares (an economy report needs a reform; a household report may have only a baseline), both of the report's own country and kind, with its year and options.
Both reference the Public API's policies, households and dynamics in the same database with foreign keys (composite with the country where the Public API table has one), all ON DELETE RESTRICT. Simulations and reports migrated from the Public API's v1 database keep their v1 IDs in unique legacy_simulation_id and legacy_report_id columns, so a later one-time migration can be run again safely.
Once deployed, both tables exist with no rows; nothing writes them until the stage 2 routes.
- 主要語言
- Python
- 星號
- 1
- 分支
- 1
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 78
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Accept the withheld-area code lists on UK local-area breakdown results before any executor sends them可能已有人在做 @anth-volk 於 4 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 67/100
PolicyEngine/policyengine-sim-api#977 ·
維護者通常 1 天內回覆
-
Update policyengine to 6.7.3可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 半天 新手友好度 70/100
PolicyEngine/policyengine-sim-api#823 ·
維護者通常 1 天內回覆
-
Integration tests fail due to missing UV virtual environment setup可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 65/100
PolicyEngine/policyengine-sim-api#314 ·
維護者通常 1 天內回覆
-
Calculate budget windows on the v2 economy path可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 5/5 一週以上 新手友好度 35/100
PolicyEngine/policyengine-sim-api#981 ·
維護者通常 1 天內回覆
-
Run whole economy reports on v2 in the Simulation Entrypoint可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 5/5 一週以上 新手友好度 25/100
PolicyEngine/policyengine-sim-api#973 ·
維護者通常 1 天內回覆
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
URLValidator ignores an explicit empty scheme allowlist可能已有人在做 @IlyaKhalafi 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
tortoise/tortoise-orm#2393 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 62/100
frappe/frappe_docker#2046 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
-
complete_box_iou_loss / complete_box_iou: NaN gradients for zero-height boxes, NaN for point boxes未關閉
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
AXI SMU SPEC
難度 2/5 1-3 小時 新手友好度 62/100
tenstorrent/tt-oca-harness#3556 ·
維護者通常 1 天內回覆