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 天 16 小时
- 30 天内合并 PR
- 61
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
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 天内回复
-
Update policyengine to 6.10.1可能已有人在做 @policyengine 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 20/100
PolicyEngine/policyengine-sim-api#905 ·
维护者通常 1 天内回复
-
Calculate a household under several policies in one call on Modal (v2 household functions)可能已有人在做 @anth-volk 今天认领。 未关闭
难度 5/5 一周以上 新手友好度 20/100
PolicyEngine/policyengine-sim-api#902 ·
维护者通常 1 天内回复
-
Give the Simulation Entrypoint its own simulation schema, migration chain and database connection可能已有人在做 @anth-volk 今天认领。 未关闭
难度 5/5 一周以上 新手友好度 15/100
PolicyEngine/policyengine-sim-api#897 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
fossasia/visdom-dev#69 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
BUG: PROD: v1.3.0-beta Onboarding Profile Picture Misaligns When Name Validation Error Appears可能已有人在做 @RitikaSen27 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
AOSSIE-Org/PictoPy#1647 · 2 条评论 ·
维护者通常 2 天内回复
-
[oblt-aw][autodoc] Update workflow docs for gh-aw v0.92.5 and detector permission scope可能已有人在做 @github-actions 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复