From c0d853da73df67e26346d4a9217425be93fcf616 Mon Sep 17 00:00:00 2001 From: Simran S Sangha Date: Thu, 9 May 2024 15:48:31 -0700 Subject: [PATCH] Fix bug in sorting products with same time stamp, but different center lat --- tools/ARIAtools/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ARIAtools/product.py b/tools/ARIAtools/product.py index 92cbe8cd..6a192038 100644 --- a/tools/ARIAtools/product.py +++ b/tools/ARIAtools/product.py @@ -1195,8 +1195,8 @@ def __run__(self): # Sort by pair, start time, and latitude self.products = list(sorted( [i for i in self.products if i != []], key=lambda i: ( - i[0]['pair_name'], i[0]['azimuthZeroDopplerMidTime'], - i[0]['centerLatitude']))) + i[0]['pair_name'], i[0]['centerLatitude'], + i[0]['azimuthZeroDopplerMidTime']))) # determine if there is a mix of different sensors s1_prods = all(i[0]['missionID'] ==