From a97cd3596a051acfd43502aa6e4cb422f3cf4af4 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 20 Apr 2021 13:52:38 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/icing.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/deeplearning/icing.py b/modules/deeplearning/icing.py
index 7b1a8dec..cb8b00e8 100644
--- a/modules/deeplearning/icing.py
+++ b/modules/deeplearning/icing.py
@@ -182,9 +182,9 @@ class IcingIntensityNN:
         key = frozenset(idxs)
 
         if CACHE_DATA_IN_MEM:
-            data, label = self.in_mem_data_cache.get(key)
-            if data is not None:
-                return data, label
+            tup = self.in_mem_data_cache.get(key)
+            if tup is not None:
+                return tup[0], tup[1]
 
         # sort these to use as numpy indexing arrays
         nd_idxs = np.array(idxs)
-- 
GitLab