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

Polish

parent c28cfa9f
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,11 @@ class SHPC_class:
return i_slice
def comp_ishape(self, date, eddy_index, i_slice, orientation):
"""Compute the location in the shapefiles."""
"""Compute the location in the shapefiles. Returns None if ishape_last
was not found and could not be created. Crashes if date is not
in i_slice. Crashes if eddy_index is out of range.
"""
ishape_last = self.get_ishape_last(i_slice, orientation)
......@@ -203,6 +207,11 @@ class SHPC_class:
return ishape
def ishape_range(self, date, i_slice, orientation):
"""Returns an empty list if ishape_last was not found and could not be
created. Crashes if date is not in i_slice.
"""
ishape_start = self.comp_ishape(date, 1, i_slice, orientation)
if ishape_start is 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