Repository navigation
Fix pfield amplitude scaling and element geometry #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
575635b
Fix pfield amplitude scaling and use the real element positions
wesselvannierop d1daf1d
Split alpha and percentile from norm=True
wesselvannierop ac67fc3
Merge remote-tracking branch 'origin/main' into fix/pfield-scale-and-…
wesselvannierop d621f3b
Restrict pfield to linear arrays and track element_width in its cache
wesselvannierop 26d4077
Validate transmit delays and apodizations for finiteness; enhance pit…
wesselvannierop e72d6db
coverage
wesselvannierop 74ae92d
Merge branch 'main' into fix/pfield-scale-and-geometry
wesselvannierop 1b4aa73
Merge branch 'main' into fix/pfield-scale-and-geometry
wesselvannierop debdf1c
Merge branch 'main' into fix/pfield-scale-and-geometry
OisinNolan 0933961
Add regression test for finite pfield values with single transmit and…
wesselvannierop f6e9069
Merge branch 'main' into fix/pfield-scale-and-geometry
OisinNolan a56dae2
Merge branch 'main' into fix/pfield-scale-and-geometry
OisinNolan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Fix pfield amplitude scaling and use the real element positions
Three fixes to `compute_pfield`: - Element centres were rebuilt from a pitch derived from the first two elements, i.e. assumed a flat, equispaced array at z = 0. Read `probe_geometry` directly instead, so curved and irregular arrays get their real x/z positions. Pitch is now taken from `Probe.get_pitch`. - `element_width` is now an explicit argument, falling back to the pitch-minus-10%-kerf guess only when it is not known. `Parameters` passes the probe's `element_width` through when it has one. - The pulse spectrum used the *pulse-echo* (two-way) bandwidth for a one-way transmit response. The one-way response is the square root of the two-way one, hence the added factor 1/2 in the exponent. - The frequency loop accumulated |P(f_k)|^2 as a sum with no df factor, so the result scaled with the number of retained samples, i.e. with 1 / freq_step -- which is derived from max(t0_delays) and therefore depends on which transmits are in the stack. Take the mean instead, so the field is a true RMS over the retained band and is comparable across transmit subsets. No effect when norm=True. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- Loading branch information
commit 575635b8d74ca05811f8ed82cf7c3d0bd635f08c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.