Skip to content

P/frequency dependent sensitivity#443

Merged
ebrahimebrahim merged 12 commits intomainfrom
p/frequency_dependent_sensitivity
Apr 17, 2026
Merged

P/frequency dependent sensitivity#443
ebrahimebrahim merged 12 commits intomainfrom
p/frequency_dependent_sensitivity

Conversation

@peterhollender
Copy link
Copy Markdown
Contributor

closes #439 #440

@peterhollender
Copy link
Copy Markdown
Contributor Author

The rebasing is throwing me for a loop. Could I get some help with the commit cleanup?

@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

Sure thing, heads up that I will force-push to this branch shortly.

@ebrahimebrahim ebrahimebrahim force-pushed the p/frequency_dependent_sensitivity branch from 8dc2859 to 2caf959 Compare April 7, 2026 15:33
@peterhollender peterhollender force-pushed the p/frequency_dependent_sensitivity branch from 2caf959 to e00eaba Compare April 7, 2026 15:43
@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

@peterhollender Want me to review this yet? If so, which makes sense to review and merge first, this one or #444 ?

(Before the next slicer extension release, I am thinking we should get in all of these big openlifu-python changes, so that we can test/upgrade things in the extension all at once.)

Copy link
Copy Markdown
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!
A couple of minor points and this should be good to go.

Comment thread src/openlifu/xdc/element.py
Comment thread src/openlifu/sim/kwave_if.py Outdated
Comment thread src/openlifu/xdc/util.py
peterhollender added a commit that referenced this pull request Apr 17, 2026
Co-authored-by: Ebrahim Ebrahim <ebrahim.ebrahim@kitware.com>
peterhollender added a commit that referenced this pull request Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Opening #448 for later is fine.

One thing to still be super careful about and that you might want to address: np.interp assumes the freqs are sorted monotonically. Sorting is not currently enforced anywhere, e.g. you could do it in Element.__post_init__.

@ebrahimebrahim ebrahimebrahim force-pushed the p/frequency_dependent_sensitivity branch from be6b46a to 7d6222a Compare April 17, 2026 17:40
@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

(adding the sorting befroe merging actually)

Needed so that np.interp in sensitivity_at_frequency produces correct results.
@ebrahimebrahim ebrahimebrahim enabled auto-merge (rebase) April 17, 2026 17:51
@ebrahimebrahim ebrahimebrahim merged commit 5bcb50b into main Apr 17, 2026
10 checks passed
ebrahimebrahim added a commit that referenced this pull request Apr 17, 2026
Co-authored-by: Ebrahim Ebrahim <ebrahim.ebrahim@kitware.com>
ebrahimebrahim pushed a commit that referenced this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add frequency-dependent sensitivity

2 participants