From f1085fa33c2e5cc93d4aa4cce67c4dc0d6c2fb0d Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 3 Nov 2022 08:23:37 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cnn_cld_frac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/deeplearning/cnn_cld_frac.py b/modules/deeplearning/cnn_cld_frac.py index a01a8192..417f0d83 100644 --- a/modules/deeplearning/cnn_cld_frac.py +++ b/modules/deeplearning/cnn_cld_frac.py @@ -319,7 +319,7 @@ class CNN: for i in range(int(lenx / 2)): cell = grd_k[t, j:j + 2, i:i + 2] if np.sum(np.isnan(cell)) == 0: - cnt = np.sum(cell[t, :, ] == 1.0) + cnt = np.sum(cell) if cnt == 0: grd_down_2x[t, j, i] = 0 elif cnt == 1: -- GitLab