From 19bcc5d1bf49da1ec3633f1dd7a6dee481c2be26 Mon Sep 17 00:00:00 2001 From: Simo Tukiainen <simo.tukiainen@fmi.fi> Date: Wed, 18 Oct 2023 13:52:17 +0300 Subject: [PATCH] Fix loop order --- src/data_processing/subcmds/process_cloudnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data_processing/subcmds/process_cloudnet.py b/src/data_processing/subcmds/process_cloudnet.py index 9ac052e6..64da4d02 100755 --- a/src/data_processing/subcmds/process_cloudnet.py +++ b/src/data_processing/subcmds/process_cloudnet.py @@ -222,8 +222,8 @@ def _get_level1b_metadata_for_categorize(self) -> dict: if len(metadata) == 1: continue found = False - for row in metadata: - for preferred_instrument in instrument_order[product]: + for preferred_instrument in instrument_order[product]: + for row in metadata: if row["instrument"]["id"] == preferred_instrument and not found: meta_records[product] = row found = True