From 2080a7475ff3002ba437ce57c72bbc2f7fa618a5 Mon Sep 17 00:00:00 2001 From: Lan <ldam@passcal.nmt.edu> Date: Wed, 10 May 2023 14:45:48 -0600 Subject: [PATCH] add sort to list of data types in err msg --- sohstationviewer/controller/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sohstationviewer/controller/processing.py b/sohstationviewer/controller/processing.py index 95c38ee64..4b4611669 100644 --- a/sohstationviewer/controller/processing.py +++ b/sohstationviewer/controller/processing.py @@ -166,7 +166,7 @@ def detect_data_type(list_of_dir: List[str]) -> Optional[str]: data_type_list = {d[0] for d in dir_data_type_dict.values()} if len(data_type_list) > 1: - dir_data_type_str = ', '. join(list(data_type_list)) + dir_data_type_str = ', '. join(sorted(list(data_type_list))) msg = (f"There are more than one types of data detected:\n" f"{dir_data_type_str}\n\n" f"Please have only one data type for each loading.") -- GitLab