From 59126a2bbb3324c0e96cc2993b198c587a8925fd Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 15 Apr 2022 13:49:28 -0500
Subject: [PATCH] minor...

---
 modules/deeplearning/icing_cnn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py
index 020668d3..8f0251a4 100644
--- a/modules/deeplearning/icing_cnn.py
+++ b/modules/deeplearning/icing_cnn.py
@@ -1033,7 +1033,7 @@ class IcingIntensityNN:
         self.do_evaluate(ckpt_dir)
 
 
-def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DAY', use_flight_altitude=False):
+def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DAY', l1b_or_l2='both', use_flight_altitude=False):
     ckpt_dir_s = os.listdir(ckpt_dir_s_path)
     cm_s = []
     prob_s = []
@@ -1043,7 +1043,7 @@ def run_restore_static(filename_l1b, filename_l2, ckpt_dir_s_path, day_night='DA
         ckpt_dir = ckpt_dir_s_path + ckpt
         if not os.path.isdir(ckpt_dir):
             continue
-        nn = IcingIntensityNN(day_night=day_night, use_flight_altitude=use_flight_altitude)
+        nn = IcingIntensityNN(day_night=day_night, l1b_or_l2=l1b_or_l2, use_flight_altitude=use_flight_altitude)
         nn.run_restore(filename_l1b, filename_l2, ckpt_dir)
         cm_s.append(tf.math.confusion_matrix(nn.test_labels.flatten(), nn.test_preds.flatten()))
         prob_s.append(nn.test_probs.flatten())
-- 
GitLab