Repository navigation
Conversation
spirit_kernel and spirit_weights calibrate a SPIRiT kernel and give its image-domain coil mixing; linop.spirit_consistency is G - I on centred, unitary multichannel k-space, a quadratic penalty for CG, ADMM or plug-and-play data consistency. slice_grappa_kernel and slice_grappa separate blipped-CAIPI multiband k-space with leak-block kernels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFB6QKTJCRjBZwuMZZnaBB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFB6QKTJCRjBZwuMZZnaBB
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFB6QKTJCRjBZwuMZZnaBB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFB6QKTJCRjBZwuMZZnaBB
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Requested by Matteo · project thread
What changed
tools.spirit_kernel(calibration, size, lambda_): SPIRiT kernel by ridge regression on every whole block of the calibration region (Lustig & Pauly, MRM 2010).tools.spirit_weights(kernel, grid): the kernel's image-domain coil mixing per voxel.linop.spirit_consistency(kernel, grid):G - Ion centred, unitary(coils, *grid)k-space as oneLinearOperator, built from bartorch'sFFT,MatrixandReshape. It is a quadratic penalty that plugs intooptim.CGas aTikhonovterm, into the ADMM data-consistency subproblem of PICS, or into plug-and-play data consistency.apps.nlinv_maps(..., sobolev=...): optional Sobolev weight of the sensitivities on the fitting grid; the pulserver EPI recon lowers it for slab calibrations.tools.slice_grappa_kernel(bands, encoding, size, lambda_)andtools.slice_grappa(collapsed, kernels, size): split-slice GRAPPA with the leak block (Cauley et al., MRM 2014) for blipped-CAIPI multiband k-space, with the per-line CAIPI weight of each band.Why
The pulserver EPI recon separates multiband groups before in-plane CG-SENSE with whole-volume nlinv maps. In the pulserver virtual-scanner simulation (32-channel head model, MB2×Ry2), split-slice GRAPPA followed by CG-SENSE takes the end-to-end error from 0.31 to 0.073 (with pypulseqpp#239's CAIPI phase fix). For 3D EPI, slab maps at Sobolev weight 1 instead of the scaled default bring Ry2/Rz2 from 0.24 to about 0.05 with the true-map encoding unchanged.
Validation
Run against the installed library with these modules overlaid (the native build was not rebuilt here):
New tests:
No CUDA device was available, so the CUDA legs skipped.
Documentation impact
New rows in
docs/api/linop.mdanddocs/api/tools.md.https://claude.ai/code/session_01MFB6QKTJCRjBZwuMZZnaBB
Generated by Claude Code