The Budget reform contract's household route errors in the qualification gate: policyengine.uk is None
维护者通常 1 天内回复
评估
调研方向
从改革契约中的家庭路由开始,将它的导入与 issue 中提到的直接模块路径进行比较。使用 policyengine-uk 2.134.7 运行 1.1.0 契约;家庭路由通过且没有 NoneType 错误即表示完成。
由索引模型根据 Issue 内容生成。
描述
Every UK qualification candidate since the reform-contract gate went live has failed that gate on the wrapper.household route. The candidates are 2.134.5, 2.134.6 and 2.134.7: candidate PRs #639, #644 and #647.
The 2.134.7 attempt's report records 15 errors and 1 fail, all on wrapper.household, with:
AttributeError: 'NoneType' object has no attribute 'calculate_household'
Cause
scripts/check_uk_candidate.pysetsPOLICYENGINE_SKIP_COUNTRY_IMPORTS=1when it is imported (line 43).- With that switch,
policyengine/__init__.pysetspolicyengine.uk = None. - The contract's household route calls
import policyengine as pe; pe.uk.calculate_household(...).
Locally, without the switch, the same route and versions pass. The full 1.1.0 contract on policyengine-uk 2.134.7 gives 773 pass, 0 fail and 0 error.
Fix
The route should import policyengine.tax_benefit_models.uk, the module policyengine.uk names, directly.
- 主要语言
- Python
- 星标
- 8
- 派生
- 10
- 平均合并
- 21 小时 34 分钟
- 30 天内合并 PR
- 45
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine.py 的其他 Issue
-
Raise the simulation cache memory warning to 16 GiB可能已有人在做 @anth-volk 于 18 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
PolicyEngine/policyengine.py#549 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
PolicyEngine/policyengine.py#473 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
PolicyEngine/policyengine.py#436 · 1 条评论 ·
维护者通常 1 天内回复
-
Certify populace-uk as the UK certified default可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
PolicyEngine/policyengine.py#408 ·
维护者通常 1 天内回复
-
UK replay gate: a data-limited inert measure blocks certification of every pe-uk release after #2241可能已有人在做 @MaxGhenis 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
PolicyEngine/policyengine.py#653 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine.py 的全部 Issue
相似的 Issue
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 72/100
drevendev/HungryCrab#273 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 76/100
drevendev/BeautifulRepo#19 ·
维护者通常 2 天内回复
-
Moonshot: Kimi K3 always sends `reasoning_effort="max"`, though the API now accepts `low` and `high`未关闭accepted
难度 2/5 1-3 小时 新手友好度 78/100
UKGovernmentBEIS/inspect_ai#5939 ·
维护者通常 1 天内回复
-
bug linux
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
area:data data-quality
难度 2/5 1-3 小时 新手友好度 68/100
reacher-z/Awesome-CUA#1468 ·
维护者通常 1 天内回复