diff --git a/src/ggrappa/application.py b/src/ggrappa/application.py index 0e901cd..2c3924b 100644 --- a/src/ggrappa/application.py +++ b/src/ggrappa/application.py @@ -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]]: @@ -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 diff --git a/src/ggrappa/grappaND.py b/src/ggrappa/grappaND.py index d106666..2ee0301 100644 --- a/src/ggrappa/grappaND.py +++ b/src/ggrappa/grappaND.py @@ -25,6 +25,7 @@ def GRAPPA_Recon( isGolfSparks=False, cuda: bool = True, cuda_mode: str = "all", + intACS=False, return_kernel: bool = False, quiet=False, @@ -85,4 +86,5 @@ def GRAPPA_Recon( mask=mask, isGolfSparks=isGolfSparks, return_kernel=return_kernel, - quiet=quiet) \ No newline at end of file + quiet=quiet, + intACS=intACS) \ No newline at end of file