From 394eeef36645fe336d65396e3c5a19a3b09fde99 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 19 Mar 2021 14:15:57 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index c91ec52e..c1e1315b 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -405,28 +405,34 @@ def analyze_all(ice_dct, no_ice_dct, neg_ice_dct): last_file = None no_ice_files = [] no_ice_times = [] + no_ice_keys = [] for ts in list(no_ice_dct.keys()): try: ds = get_goes_datasource(ts) goes_file, t_0, _ = ds.get_file(ts) if goes_file is not None and goes_file != last_file: - no_ice_files.append(goes_file) - no_ice_times.append(t_0) - last_file = goes_file + rpts = no_ice_dct[ts] + for tup in rpts: + no_ice_files.append(goes_file) + no_ice_times.append(t_0) + last_file = goes_file except Exception: continue last_file = None neg_ice_files = [] neg_ice_times = [] + neg_ice_keys = [] for ts in list(neg_ice_dct.keys()): try: ds = get_goes_datasource(ts) goes_file, t_0, _ = ds.get_file(ts) if goes_file is not None and goes_file != last_file: - neg_ice_files.append(goes_file) - neg_ice_times.append(t_0) - last_file = goes_file + rpts = neg_ice_dct[ts] + for tup in rpts: + neg_ice_files.append(goes_file) + neg_ice_times.append(t_0) + last_file = goes_file except Exception: continue -- GitLab