Skip to content

Fix shift measurement in extACS case for pattern checking in CoK #7

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ggrappa/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def apply_grappa_kernel(sig,
cuda: bool = False,
cuda_mode: str = "all",
return_kernel: bool = False,
intACS=False,
quiet: bool = False,
dtype=torch.complex64,
) -> Union[torch.Tensor, Tuple[torch.Tensor, torch.Tensor]]:
Expand All @@ -47,7 +48,7 @@ def apply_grappa_kernel(sig,
shift_y, shift_z = 0, 0
if isGolfSparks:
sig, start_loc, end_loc = extract_sampled_regions(sig, acs_only=False)
if delta != 0:
if not intACS:
# Measure the shift by checking the pattern at the center of k-space
# FIXME: we currently dont support InACS with CAIPI, which would fail
sig_sampled_pat = sig.abs().sum(0).sum(-1)!=0
Expand Down
4 changes: 3 additions & 1 deletion src/ggrappa/grappaND.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def GRAPPA_Recon(
isGolfSparks=False,
cuda: bool = True,
cuda_mode: str = "all",
intACS=False,
return_kernel: bool = False,
quiet=False,

Expand Down Expand Up @@ -85,4 +86,5 @@ def GRAPPA_Recon(
mask=mask,
isGolfSparks=isGolfSparks,
return_kernel=return_kernel,
quiet=quiet)
quiet=quiet,
intACS=intACS)