File tree Expand file tree Collapse file tree 5 files changed +15
-17
lines changed
src/mrinufft/operators/interfaces Expand file tree Collapse file tree 5 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -860,7 +860,7 @@ def pipe(
860860 cls ,
861861 kspace_loc ,
862862 volume_shape ,
863- num_iterations = 10 ,
863+ max_iter = 10 ,
864864 osf = 2 ,
865865 normalize = True ,
866866 ** kwargs ,
@@ -873,7 +873,7 @@ def pipe(
873873 the kspace locations
874874 volume_shape: np.ndarray
875875 the volume shape
876- num_iterations : int default 10
876+ max_iter : int default 10
877877 the number of iterations for density estimation
878878 osf: float or int
879879 The oversampling factor the volume shape
@@ -894,7 +894,7 @@ def pipe(
894894 ** kwargs ,
895895 )
896896 density_comp = cp .ones (kspace_loc .shape [0 ], dtype = grid_op .cpx_dtype )
897- for _ in range (num_iterations ):
897+ for _ in range (max_iter ):
898898 density_comp /= cp .abs (
899899 grid_op .op (
900900 grid_op .adj_op (density_comp .astype (grid_op .cpx_dtype ))
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ def pipe(
174174 cls ,
175175 kspace_loc ,
176176 volume_shape ,
177- num_iterations = 10 ,
177+ max_iter = 10 ,
178178 osf = 2 ,
179179 normalize = True ,
180180 ** kwargs ,
@@ -187,7 +187,7 @@ def pipe(
187187 the kspace locations
188188 volume_shape: np.ndarray
189189 the volume shape
190- num_iterations : int default 10
190+ max_iter : int default 10
191191 the number of iterations for density estimation
192192 osf: float or int
193193 The oversampling factor the volume shape
@@ -208,7 +208,7 @@ def pipe(
208208 ** kwargs ,
209209 )
210210 density_comp = np .ones (kspace_loc .shape [0 ], dtype = grid_op .cpx_dtype )
211- for _ in range (num_iterations ):
211+ for _ in range (max_iter ):
212212 density_comp /= np .abs (
213213 grid_op .op (
214214 grid_op .adj_op (density_comp .astype (grid_op .cpx_dtype ))
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ def pipe(
584584 cls ,
585585 kspace_loc ,
586586 volume_shape ,
587- num_iterations = 10 ,
587+ max_iter = 10 ,
588588 osf = 2 ,
589589 normalize = True ,
590590 ** kwargs ,
@@ -597,7 +597,7 @@ def pipe(
597597 the kspace locations
598598 volume_shape: np.ndarray
599599 the volume shape
600- num_iterations : int default 10
600+ max_iter : int default 10
601601 the number of iterations for density estimation
602602 osf: float or int
603603 The oversampling factor the volume shape
@@ -616,9 +616,7 @@ def pipe(
616616 osf = 1 ,
617617 ** kwargs ,
618618 )
619- density_comp = grid_op .raw_op .operator .estimate_density_comp (
620- max_iter = num_iterations
621- )
619+ density_comp = grid_op .raw_op .operator .estimate_density_comp (max_iter = max_iter )
622620 if normalize :
623621 test_op = cls (samples = kspace_loc , shape = original_shape , ** kwargs )
624622 test_im = np .ones (original_shape , dtype = np .complex64 )
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ def pipe(
156156 cls ,
157157 samples ,
158158 shape ,
159- num_iterations = 10 ,
159+ max_iter = 10 ,
160160 osf = 2 ,
161161 normalize = True ,
162162 ):
@@ -169,7 +169,7 @@ def pipe(
169169 It should be C-contiguous.
170170 shape: tuple
171171 Shape of the image space.
172- n_iter : int
172+ max_iter : int
173173 Number of iterations.
174174 osf: int, default 2
175175 Currently, we support only OSF=2 and this value cannot be changed.
@@ -192,7 +192,7 @@ def pipe(
192192 samples .astype (np .float32 ),
193193 shape ,
194194 method = "pipe" ,
195- max_iter = num_iterations ,
195+ max_iter = max_iter ,
196196 )
197197 )
198198
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def pipe(
192192 cls ,
193193 kspace_loc ,
194194 volume_shape ,
195- num_iterations = 10 ,
195+ max_iter = 10 ,
196196 osf = 2 ,
197197 normalize = True ,
198198 use_gpu = False ,
@@ -206,7 +206,7 @@ def pipe(
206206 the kspace locations
207207 volume_shape: tuple
208208 the volume shape
209- num_iterations : int default 10
209+ max_iter : int default 10
210210 the number of iterations for density estimation
211211 osf: float or int
212212 The oversampling factor the volume shape
@@ -225,7 +225,7 @@ def pipe(
225225 ** kwargs ,
226226 )
227227 density_comp = tkbn .calc_density_compensation_function (
228- ktraj = kspace_loc , im_size = volume_shape , num_iterations = num_iterations
228+ ktraj = kspace_loc , im_size = volume_shape , max_iter = max_iter
229229 )
230230 if normalize :
231231 spike = torch .zeros (volume_shape , dtype = torch .float32 ).to (grid_op .device )
You can’t perform that action at this time.
0 commit comments