From 999aaf96ea655e2235a951a8d4c1b1a9f521aad3 Mon Sep 17 00:00:00 2001 From: Max Grover Date: Thu, 4 Apr 2024 12:51:57 -0500 Subject: [PATCH] FIX: Fix scipy gaussian deprecation in testing (#1544) * FIX: Fix handling of instrument params * FIX: Fix the numpy module used in spectra --- pyart/testing/sample_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyart/testing/sample_objects.py b/pyart/testing/sample_objects.py index e9fc2833a4..c7bc7cf4e8 100644 --- a/pyart/testing/sample_objects.py +++ b/pyart/testing/sample_objects.py @@ -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