Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add support for non-uniform focal point hit counts

未关闭
#449 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@samueljwu 已经在做这个了。

开始于 2026年5月1日。

  • #450 来自 @samueljwu —— 已关闭,未合并
  • #452 来自 @samueljwu —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
tooling

调研方向

首先阅读 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 point
  • Protocol.calc_solution: add new focal_hit_counts and optimize parameters. focal_hit_counts accepts an explicit allocation. optimize=True computes an optimized allocation automatically
  • optimize_hit_counts(): add a helper that maximizes the min ISPTA across focal points, subject to TIC limits from param_constraints
  • SolutionAnalysis.per_focus_tic: add a new field exposing per-focus TIC values
  • weighted intensity aggregation in calc_solution and Solution.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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenwaterHealth/openlifu-python 的其他 Issue

查看 OpenwaterHealth/openlifu-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。