Add array_transform to SolutionInfo to preserve compute-time transducer pose
まだ誰も着手していません。
評価
調査の方向性
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:
- 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. - 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
Nonefor legacy round-trips). __post_init__accepts a dict transparently soSession.from_dict
decodingsolutionsentries 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenwaterHealth/openlifu-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Save Focal Gain LUT into a data file (json, csv, etc.) to make the source code file shorter.対応中かも @HussainAther が 87 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OpenwaterHealth/openlifu-python#448 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Reconstruction quality is inconsistent +poor across runs on identical input + very slow processing再び着手できるかも @stahir715 が 65 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
OpenwaterHealth/openlifu-python#496 · コメント 7 件 · 担当者 2 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OpenwaterHealth/openlifu-python#493 · コメント 1 件 ·
OpenwaterHealth/openlifu-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
common-workflow-language/cwl-utils#477 ·
メンテナーはふだん 1 日以内に返信
-
Add dependabotオープンfeat
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
open-nudge/opentemplate#204 ·
メンテナーはふだん 1 日以内に返信
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limit対応中かも @VascoSch92 が今日担当しました。 オープンpriority:medium ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenHands/extensions#781 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-aw-workshop#4638 ·
メンテナーはふだん 1 日以内に返信