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

Improve robustness

`n_valid == 0` occurs if the script is used on the shapefile triplet
of interpolated eddies.
parent f706161c
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,11 @@ print()
print("number of outermost contours (outermost contour found, but may be with "
"sufficient area or not):", n_outer)
print("average number of points of outermost contour per valid eddy:",
n_points_valid / n_valid)
if n_valid != 0:
print("average number of points of outermost contour per valid eddy:",
n_points_valid / n_valid)
print("average number of points of outermost contour per extremum (valid eddy "
"or not):", n_points / n_extr)
print()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment