From 97ff3dba9d688f41107bd51c9d694ddc96fc32e8 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 11 Dec 2023 16:22:28 -0600
Subject: [PATCH] snapshot...

---
 modules/deeplearning/icing_fcn.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/deeplearning/icing_fcn.py b/modules/deeplearning/icing_fcn.py
index ea211d6a..2977ec0e 100644
--- a/modules/deeplearning/icing_fcn.py
+++ b/modules/deeplearning/icing_fcn.py
@@ -1164,9 +1164,6 @@ def run_evaluate_static_2(model, data_dct, num_tiles, prob_thresh=0.5, flight_le
     if not use_flight_altitude:
         flight_levels = [0]
 
-    if use_max_cth_level:
-        flight_levels.append(5)
-
     probs_dct = {flvl: None for flvl in flight_levels}
     preds_dct = {flvl: None for flvl in flight_levels}
 
@@ -1180,6 +1177,8 @@ def run_evaluate_static_2(model, data_dct, num_tiles, prob_thresh=0.5, flight_le
 
     if use_max_cth_level:
         flvl = 5
+        probs_dct[flvl] = None
+        preds_dct[flvl] = None
         model.cth_max = data_dct.get('cth_high_avg', None)
         model.flight_level = flvl
         model.setup_eval_pipeline(data_dct, num_tiles)
-- 
GitLab