From 0c0dbb8a97f84c2b853da99c4cfeb8313685c7d4 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 20 Oct 2022 09:31:57 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/srcnn_l1b_l2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py
index e845ebf6..801a0914 100644
--- a/modules/deeplearning/srcnn_l1b_l2.py
+++ b/modules/deeplearning/srcnn_l1b_l2.py
@@ -774,7 +774,7 @@ def analyze(fpath='/Users/tomrink/clavrx_snpp_viirs.A2019080.0100.001.2019080064
     print(grd_lr.shape)
     leny, lenx = grd_lr.shape
     rnd = np.random.normal(loc=0, scale=0.001, size=grd_lr.size)
-    grd_lr += rnd.reshape(grd_lr.shape)
+    grd_lr = grd_lr + rnd.reshape(grd_lr.shape)
     if param == 'cloud_fraction':
         grd_lr = np.where(grd_lr < 0, 0, grd_lr)
         grd_lr = np.where(grd_lr > 1, 1, grd_lr)
-- 
GitLab