From d977d5f23d5ff1ca32099bc20648a0be2f6df9d1 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 26 Jul 2022 13:15:52 -0500
Subject: [PATCH] fix bug

---
 modules/icing/util.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/icing/util.py b/modules/icing/util.py
index 38f55ec0..e5f05873 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -213,7 +213,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
 
         elif day_night == 'NIGHT':
             model_path = night_model_path
-            all_idxs = np.arange(num_lines * num_elems)
+            all_idxs = np.arange(num_lines * num_elems).tolist()
 
             mode = 'NIGHT'
             if use_dnb and lunar_illuminated:
@@ -234,6 +234,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
                                                                               prob_thresh=prob_thresh,
                                                                               use_flight_altitude=use_flight_altitude,
                                                                               flight_levels=flight_levels)
+            all_idxs = np.asarray(all_idxs)
             for flvl in flight_levels:
                 nght_preds = preds_nght_dct[flvl]
                 nght_probs = probs_nght_dct[flvl]
-- 
GitLab