feat: データモデルを設定駆動の DataSchema に汎用化 - #39
Merged
Merged
Conversation
CSV/gakuseki/bt_addrs の直書きを data_schema 設定と ReceivedPayload に置き換え、フィルタ注入で blockchain→pipeline の結合を緩める。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
CI の pylint 失敗を直し、テスト用 DataSchema ヘルパーを共通化した。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
卒論用途の CSV /
gakuseki/bt_addrs前提に縛られていたデータモデルを、他データセットでも扱えるよう抽象化する。変更内容
config/blockchain.jsonにdata_schemaを追加し、カラム名・CSVリネーム・ブロック input/output 形状を設定化ReceivedPayloaddataclass に置換MyBlockChainにfilter_registered注入を追加し、blockchain→pipeline の直接結合を緩める影響範囲
src/ble_blockchain/loader/myblock/main/delete_excess_data/ 新規types.pyconfig/(JSON)blockchain.jsonにdata_schema追加(既定値は現行 CSV 互換)settings*.json/keys/*.pemtests/docs//docs/diagrams/Test plan
uv run pytest tests/(54 passed)uv run pytest tests/integration/data_schemaで既存 CSV(事前取得データ.csv)相当のフィルタ・多数決が通ることstudent_id/mac)でフィルタ・ブロック構築できること不安点
🤖 Generated with Claude Code
Made with Cursor