Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add array_transform to SolutionInfo to preserve compute-time transducer pose

オープン 初心者向け
#491 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
database

調査の方向性

openlifu.db.session.SolutionInfo から始め、Session.from_dict が solutions エントリをどのようにデコードするかを確認します。オプションの array_transform フィールドについて tests/test_database.py を更新し、dict のデコードと None のレガシー動作を含めます。データベースのラウンドトリップ後も値が保持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Add an optional array_transform: ArrayTransform | None field to
openlifu.db.session.SolutionInfo capturing the transducer array-to-volume
transform matrix that was used when the corresponding Solution was
computed.

Motivation

Downstream (SlicerOpenLIFU) currently renders a solution's PNP / intensity
volumes by parenting them under the transducer's transform node, then snapping
the transducer to whichever virtual-fit or transducer-tracking result is
currently approved. This means:

  1. If the currently-approved VF / TT changes between compute time and display
    time, the PNP moves to the new pose rather than staying where it was
    computed.
  2. For a pre-solution (computed off a VF result), the VF approval may later
    be revoked; there is then no way to display the solution at its original
    pose because no transform survives.

The fix is to persist the exact matrix used at compute time on the
SolutionInfo provenance record. Consumers snap the transducer to that
matrix on display, so the PNP is invariant under later approval churn.

Details

  • New field SolutionInfo.array_transform: ArrayTransform | None (default
    None for legacy round-trips).
  • __post_init__ accepts a dict transparently so Session.from_dict
    decoding solutions entries produces the correct type.
  • Round-trip tests added in tests/test_database.py.

Downstream

Tracked in SlicerOpenLIFU#622: "Pre-Solution PNP overlay renders at wrong
position when navigating to Sonication Planner". That issue's fix consumes
this new field.

主要言語
Python
スター
29
フォーク
20
平均マージ
4時間 31分
マージ済み PR(30日)
6

環境構築

はじめの一歩

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

OpenwaterHealth/openlifu-python のほかの issue

OpenwaterHealth/openlifu-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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