[Feature]: Add annotation-based YAML parser for CoP and AdvCP configs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
調査の方向性
Start by locating the existing YAML parsing and default merging in coperception.visualization, coperception.metrics.metric_configs, and the AdvCP attack config. Read those call sites and compare the nested config fields named in the issue; completion means a reusable annotation-based parser supports the listed types and reports full config paths, with the three migration targets using it.
索引モデルが issue の本文から書いたものです。
説明
Problem or motivation
CoP and AdvCP YAML configs are currently parsed manually in several places using dict.get(...), local default merging, and ad-hoc validation helpers. This spreads schema knowledge across managers, visualizers, metrics, and attack helpers.
As configs grow, this makes it easier to miss invalid YAML, duplicate parsing logic, or produce unclear errors when a nested key is malformed.
Proposed solution
Add a reusable annotation-based YAML parser that loads YAML mappings into typed Python config objects, likely dataclasses, using Python type annotations as the schema source.
The parser should support:
- Nested typed config objects.
- Defaults and optional fields.
- Basic scalar coercion / validation for
int,float,bool,str. - Lists, tuples, and mappings where needed.
- Clear validation errors with full config paths, e.g.
coperception.visualization.bbox_colors.pred.
Initial migration targets:
coperception.visualizationcoperception.metrics.metric_configs- AdvCP attack config, including mode, attacker ids, density, spoofing/removal parameters, and boxes.
Area
Cooperative perception
- 主要言語
- Python
- スター
- 11
- フォーク
- 11
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CAVISE/OpenCDA のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
Lessons: record the second case of L14 (security updates cover only pip)対応中かも @vishwanathj が今日担当しました。 オープンarea/docs no-test-needed type/docs
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vishwanathj/ocp_lab.ai#39 · コメント 1 件 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
laaielichter/Gulliver#228 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
nyjc-computing/campus#1338 ·
メンテナーはふだん 1 日以内に返信