Skip to content
Snippets Groups Projects
Commit 2080a747 authored by Lan Dam's avatar Lan Dam
Browse files

add sort to list of data types in err msg

parent 46ef8853
No related branches found
No related tags found
1 merge request!122allow to select multi folder to load
...@@ -166,7 +166,7 @@ def detect_data_type(list_of_dir: List[str]) -> Optional[str]: ...@@ -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()} data_type_list = {d[0] for d in dir_data_type_dict.values()}
if len(data_type_list) > 1: 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" msg = (f"There are more than one types of data detected:\n"
f"{dir_data_type_str}\n\n" f"{dir_data_type_str}\n\n"
f"Please have only one data type for each loading.") f"Please have only one data type for each loading.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment