From cd04c06c06e1399c262c970180f291d583eaf72b Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Fri, 24 May 2024 14:06:36 -0600 Subject: [PATCH] change dictionary to ordered dict --- cime_config/SystemTests/systemtest_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cime_config/SystemTests/systemtest_utils.py b/cime_config/SystemTests/systemtest_utils.py index 9470799a27..2591ac4223 100644 --- a/cime_config/SystemTests/systemtest_utils.py +++ b/cime_config/SystemTests/systemtest_utils.py @@ -3,6 +3,7 @@ """ import os, subprocess, re, glob +from collections import OrderedDict def cmds_to_setup_conda(caseroot): @@ -99,7 +100,7 @@ def find_user_nl_option(caseroot, component, namelist_option): raise RuntimeError("No user_nl files found for component " + component) # Read through the file list and look for a match and return the whole entry - output = {} + output = OrderedDict() for one_file in file_list: with open(one_file, "r") as user_nl_file: user_nl_text = user_nl_file.read()