diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index c91ec52ec43205611f879ace463377d1ae5960cf..c1e1315b59f3b8e67d3d20aae69d6440dd2108b4 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