Skip to content
Snippets Groups Projects
Commit 165ff872 authored by Florian Ziemen's avatar Florian Ziemen
Browse files

remove last file from list if broken.

Nasty code, regarding side effect of function, but does the trick for now.
parent b593633b
No related branches found
No related tags found
1 merge request!5Update ensoexperiments
Pipeline #95583 passed
......@@ -43,6 +43,7 @@ def get_start_end(files: List[Path]):
last = open_nc(files[-2])
end = last.time[-1]
date_end = fix_abs_datetime(end)
del files[-1]
except IndexError:
raise BadDataset(f"Can't deduce times from {files}") from None
......
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