Skip to content

Commit 5b71547

Browse files
aymuos15ericspod
andauthored
Remove unused n_dims parameter from Fourier.inv_shift_fourier (#8766)
As discussed here: #8762 --------- Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk> Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent daaedaa commit 5b71547

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

monai/transforms/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,9 +1884,7 @@ def shift_fourier(x: NdarrayOrTensor, spatial_dims: int, as_contiguous: bool = F
18841884
return ascontiguousarray(k) if as_contiguous else k
18851885

18861886
@staticmethod
1887-
def inv_shift_fourier(
1888-
k: NdarrayOrTensor, spatial_dims: int, n_dims: int | None = None, as_contiguous: bool = False
1889-
) -> NdarrayOrTensor:
1887+
def inv_shift_fourier(k: NdarrayOrTensor, spatial_dims: int, as_contiguous: bool = False) -> NdarrayOrTensor:
18901888
"""
18911889
Applies inverse shift and fourier transform. Only the spatial
18921890
dimensions are transformed.

0 commit comments

Comments
 (0)