Skip to content

Commit 3e31dcb

Browse files
Malika Khelfallahsk1p
Malika Khelfallah
authored andcommitted
Flake8
1 parent 06ed648 commit 3e31dcb

File tree

1 file changed

+2
-3
lines changed
  • src/libertem_holo/base

1 file changed

+2
-3
lines changed

src/libertem_holo/base/bf.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,9 @@ def reconstruct_bf(
154154
xp=np,
155155
) -> np.ndarray:
156156
frame = xp.array(frame)
157-
# frame_size = frame.shape
158-
fft_frame = xp.fft.fft2(frame) # / np.prod(frame_size)
157+
fft_frame = xp.fft.fft2(frame)
159158
fft_frame = xp.fft.fftshift(xp.fft.fftshift(fft_frame)[slice_fft])
160159

161160
fft_frame = fft_frame * xp.array(aperture)
162161

163-
return xp.fft.ifft2(fft_frame) # * np.prod(frame_size)
162+
return xp.fft.ifft2(fft_frame)

0 commit comments

Comments
 (0)