Skip to content

Commit

Permalink
FIX: Fix scipy gaussian deprecation in testing (#1544)
Browse files Browse the repository at this point in the history
* FIX: Fix handling of instrument params

* FIX: Fix the numpy module used in spectra
  • Loading branch information
mgrover1 authored Apr 4, 2024
1 parent d454fd9 commit 999aaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyart/testing/sample_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,6 @@ def make_target_spectra_radar():
radar = make_empty_spectra_radar(10, 20, 50)
fdata = np.zeros((10, 20, 50), dtype="float32")
max_value = 10 ** (-10 / 10)
fdata[:, :, :] = 10 * np.log10(scipy.signal.gaussian(50, std=7) * max_value)
fdata[:, :, :] = 10 * np.log10(scipy.signal.windows.gaussian(50, std=7) * max_value)
radar.ds["spectra"].values = fdata
return radar

0 comments on commit 999aaf9

Please sign in to comment.