From 28da2b62809217841c86b5dda1d199c2ebc30924 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 1 Sep 2021 10:09:30 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 242715e8..65dbbf7b 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -1688,14 +1688,15 @@ jdays= [['070', '071', '072', '073', '074', '075'], ['078', '079', '080', '081', def make_ts_bins(): - edges = [] nbins = len(jdays) + edges = [[] for k in range(nbins)] for k in range(nbins): num = len(jdays[k]) jd_a = jdays[k][0] ts_a = get_timestamp('2019-'+jd_a+'_00:00', format_code='%Y-%j_%H:%M') jd_b = jdays[k][num-1] ts_b = get_timestamp('2019-'+jd_b+'_23:59', format_code='%Y-%j_%H:%M') - edges.append(ts_a) - edges.append(ts_b) - return edges \ No newline at end of file + edges[k].append(ts_a) + edges[k].append(ts_b) + + return edges -- GitLab