Write unset zero ratings the same way in every parser
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- backend
调研方向
Start with src/openapi/branch.jl and read _get_rating, then trace how the line, 2W, 3W and MATPOWER parsers write ratings. Confirm how each represents an unset zero rating and where parser tests cover those cases. Done means one shared helper omits unset rating keys across all four parsers, and _get_rating treats only a missing key as unbounded.
由索引模型根据 Issue 内容生成。
描述
From review on #91. The current behavior is correct, but it's not clean.
A zero rating means "no limit", and the parsers record that differently: some leave the key out and some keep a zero. _get_rating (src/openapi/branch.jl) handles both by treating a missing key and a zero value as unbounded.
Suggestion: never write the key for an unset rating, through one helper used by the line, 2W, 3W and MATPOWER parsers. _get_rating then only has to treat a missing key as unbounded, and its zero-value fallback can go.
🤖 Generated with Claude Code
- 主要语言
- Julia
- 星标
- 1
- 派生
- 3
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Sienna-Platform/PowerFlowFileParser.jl 的其他 Issue
-
Update parsing of switch rating可能已有人在做 @m-bossart 于 3 天前认领。 未关闭
Sienna-Platform/PowerFlowFileParser.jl#92 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
Sienna-Platform/PowerFlowFileParser.jl#89 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
Sienna-Platform/PowerFlowFileParser.jl#88 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
Sienna-Platform/PowerFlowFileParser.jl#86 ·
维护者通常 1 天内回复
-
Handling negative resistance可能已有人在做 @annacasavant 于 3 天前认领。 未关闭
Sienna-Platform/PowerFlowFileParser.jl#83 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 Sienna-Platform/PowerFlowFileParser.jl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
FluxML/Metalhead.jl#407 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 1/5 1 小时以内 新手友好度 88/100
SciML/ModelingToolkit.jl#5371 ·
维护者通常 2 天内回复
-
GNNLux MEGNetConv drops the state of stateful sublayers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭lux
难度 2/5 1-3 小时 新手友好度 76/100
JuliaGraphs/GraphNeuralNetworks.jl#732 ·
维护者通常 2 天内回复