From e2c32333aacabbd0158d7bc3b9b1a3b983c37529 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 10 Mar 2021 12:57:50 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 0b691fe3..bc762037 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -178,21 +178,14 @@ def analyze(ice_dct, no_ice_dct): ice_times = np.array(ice_times) no_ice_times = np.array(no_ice_times) - print(ice_times.shape, no_ice_times.shape) itrsct_vals, comm1, comm2 = np.intersect1d(no_ice_times, ice_times, return_indices=True) - print(itrsct_vals.shape, comm1.shape, comm2.shape) ice_indexes = np.arange(len(ice_times)) - print(ice_indexes.shape) - np.random.shuffle(ice_indexes) - print(ice_indexes.shape) - obj = comm2 != ice_indexes - print(obj.shape) - - ucomm2 = ice_indexes[comm2 != ice_indexes] + ucomm2 = np.setdiff1d(comm2, ice_indexes) print(ucomm2.shape) + np.random.shuffle(ucomm2) ucomm2 = ucomm2[0:8000] files_comm = [] -- GitLab