Skip to content

Commit 17318d5

Browse files
committed
fix: rewrite the off-resonance operator.
1 parent ac8a5f4 commit 17318d5

File tree

2 files changed

+252
-322
lines changed

2 files changed

+252
-322
lines changed

src/mrinufft/operators/base.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,20 @@ def data_consistency(self, image_data, obs_data):
232232
"""
233233
return self.adj_op(self.op(image_data) - obs_data)
234234

235-
def with_off_resonance_correction(self, B, C, indices):
235+
def with_off_resonance_correction(
236+
self,
237+
b0_map: NDArray | None = None,
238+
readout_time: NDArray | None = None,
239+
r2star_map: NDArray | None = None,
240+
mask: NDArray | None = None,
241+
interpolator: str | dict | tuple[NDArray, NDArray] = "svd",
242+
):
236243
"""Return a new operator with Off Resonnance Correction."""
237244
from .off_resonance import MRIFourierCorrected
238245

239-
return MRIFourierCorrected(self, B, C, indices)
246+
return MRIFourierCorrected(
247+
self, b0_map, readout_time, r2star_map, mask, interpolator
248+
)
240249

241250
def compute_smaps(self, method: NDArray | Callable | str | dict | None = None):
242251
"""Compute the sensitivity maps and set it.

0 commit comments

Comments
 (0)