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

Allow missing `ishape_last.txt` in `comp_ishape`

Allow missing `ishape_last.txt` in method `comp_ishape`. This is
useful is an SHPC is missing an orientation.
parent 413f4e27
No related branches found
No related tags found
No related merge requests found
...@@ -177,8 +177,11 @@ class SHPC_class: ...@@ -177,8 +177,11 @@ class SHPC_class:
ishape = eddy_index - 1 ishape = eddy_index - 1
else: else:
# date > self.d_init[i_slice] # date > self.d_init[i_slice]
ishape = self.get_ishape_last(i_slice, orientation)\ try:
[date - self.d_init[i_slice] - 1] + eddy_index ishape = self.get_ishape_last(i_slice, orientation)\
[date - self.d_init[i_slice] - 1] + eddy_index
except TypeError:
ishape = None
return ishape return ishape
......
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