Skip to content
Snippets Groups Projects
Commit 3d0ceb8d authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Polish

parent f60fef01
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,8 @@ class SHPC_class:
try:
i_slice = self._i_slice[date_index - self.d_init[0]]
except IndexError:
# This can happen in particular if date_index=d_init[0]
# and all the slices have empty date ranges.
i_slice = None
return i_slice
......
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