Add support for non-uniform focal point hit counts
评估
调研方向
首先阅读 Solution、Protocol.calc_solution、SolutionAnalysis.per_focus_tic 以及现有的 param_constraints 处理逻辑。跟踪当前如何为焦点分配脉冲,以及如何汇总 ISPTA 和 TIC。完成内容应包括显式和优化的 focal-hit 分配、考虑约束的优化、按焦点报告 TIC,以及加权强度计算。
由索引模型根据 Issue 内容生成。
描述
Currently, pulses in a sonication sequence are distributed equally across all focal points in a round robin pattern. In multifocus treatments, focal points can receive different effective acoustic energy per pulse, so equal pulse distribution can leave some foci undertreated relative to ther others. Allowing more pulses to be allocated to weaker foci could raise the min ISPTA across focal points and improve treatment uniformity.
Main proposed changes:
Solution.focal_hit_counts: add a new field storing the number of pulses directed to each focal pointProtocol.calc_solution: add newfocal_hit_countsandoptimize parameters.focal_hit_countsaccepts an explicit allocation.optimize=Truecomputes an optimized allocation automaticallyoptimize_hit_counts(): add a helper that maximizes the min ISPTA across focal points, subject to TIC limits fromparam_constraintsSolutionAnalysis.per_focus_tic: add a new field exposing per-focus TIC values- weighted intensity aggregation in
calc_solutionandSolution.get_ispta
Please let me know if this sounds reasonable and if you'd be open to a PR. I'd love to contribute. Thanks!
- 主要语言
- Python
- 星标
- 29
- 派生
- 20
- 平均合并
- 4 小时 31 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenwaterHealth/openlifu-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 75/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 一周以上 新手友好度 25/100
-
Reconstruction quality is inconsistent +poor across runs on identical input + very slow processing可能重新可做 @stahir715 于 66 天前认领,目前没有进行中的 PR。 未关闭
OpenwaterHealth/openlifu-python#496 · 7 条评论 · 已指派 2 人 ·
查看 OpenwaterHealth/openlifu-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
noontide-co/mainbranch#1211 · 1 条评论 ·
维护者通常 1 天内回复
-
[1.x Bug] run-operation --sql reports success but rolls back writes on transaction-capable adapters未关闭triage
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
bug settings ui
难度 2/5 1-3 小时 新手友好度 72/100
DewaldOosthuizen/py-tray-command-launcher#162 ·
维护者通常 1 天内回复
-
run_all sleeps after the final job despite documenting delays between jobs可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100