From f56ccc37d825ac9f49c87ba370d644d6c0c9edb9 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 20 Oct 2022 15:34:40 -0500 Subject: [PATCH] snapshot... --- modules/util/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/util/util.py b/modules/util/util.py index 4aed787e..d2eb362e 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -452,8 +452,7 @@ def normalize(data, param, mean_std_dict, add_noise=False, noise_scale=0.01, see if add_noise: if seed is not None: np.random.seed(seed) - rnd = np.random.normal(loc=0, size=data.size) - rnd *= noise_scale + rnd = np.random.normal(loc=0, scale=noise_scale, size=data.size) data += rnd not_valid = np.isnan(data) -- GitLab