Skip to content

Commit fe3b0bf

Browse files
committed
In case of contour filled with fake value
1 parent 30a3110 commit fe3b0bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

TODOLIST.md

Whitespace-only changes.

src/py_eddy_tracker/poly.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,4 +785,6 @@ def reduce_size(x, y):
785785
i -= 1
786786
if x[i] != x0 or y[i] != y0:
787787
i += 1
788+
# In case of virtual obs all value could be fill with same value, to avoid empty array
789+
i = max(3, i)
788790
return x[:i], y[:i]

0 commit comments

Comments
 (0)