Write unset zero ratings the same way in every parser

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

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

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

評価

難易度
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時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

Sienna-Platform/PowerFlowFileParser.jl のほかの issue

Sienna-Platform/PowerFlowFileParser.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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