Skip to content

Commit

Permalink
fix scipy new version
Browse files Browse the repository at this point in the history
  • Loading branch information
brash6 committed Apr 19, 2024
1 parent 9a97c1d commit f43584c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepdespeckling/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def symetrise_real_and_imaginary_parts(real_part: np.array, imag_part: np.array)
shift_az_2 = int(
round(-(d1 - 1 - p.shape[0]) / 2)) % p.shape[0] + int(p.shape[0] / 2)
p2_2 = np.roll(p, shift_az_2)
window = signal.gaussian(p.shape[0], std=0.2 * p.shape[0])
window = signal.windows.gaussian(p.shape[0], std=0.2 * p.shape[0])
test_1 = np.sum(window * p2_1)
test_2 = np.sum(window * p2_2)
# make sure the spectrum is symetrized and zeo-Doppler centered
Expand All @@ -260,7 +260,7 @@ def symetrise_real_and_imaginary_parts(real_part: np.array, imag_part: np.array)
shift_range_2 = int(
round(-(d2 - 1 - q.shape[0]) / 2)) % q.shape[0] + int(q.shape[0] / 2)
q2_2 = np.roll(q, shift_range_2)
window_r = signal.gaussian(q.shape[0], std=0.2 * q.shape[0])
window_r = signal.windows.gaussian(q.shape[0], std=0.2 * q.shape[0])
test_1 = np.sum(window_r * q2_1)
test_2 = np.sum(window_r * q2_2)
if test_1 >= test_2:
Expand Down

0 comments on commit f43584c

Please sign in to comment.