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

fix to show all dirs when there're a mix of RT130 data DAS and others

parent 563c266f
No related branches found
No related tags found
1 merge request!250fix to show all dirs when there're a mix of RT130 data DAS and others
......@@ -288,6 +288,8 @@ def rt130_find_cf_dass(root_dir: str) -> Dict[str, List[Path]]:
root_dir += os.sep
day_dirs = os.listdir(root_dir)
for day_dir in day_dirs:
if day_dir.startswith('.'):
continue
if len(day_dir) == 7 and day_dir.isdigit():
# check for directory with format YYYYDOY: 7 digits
try:
......@@ -301,6 +303,8 @@ def rt130_find_cf_dass(root_dir: str) -> Dict[str, List[Path]]:
if das_dir not in das_dict.keys():
das_dict[das_dir] = []
das_dict[das_dir].append(das_path)
else:
return {}
return das_dict
......
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