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

Make `compute_ishape` more robust

The shapefile reader does not abort with ishape == - 1. So use None instead.
parent 0029b979
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ def compute_ishape(n, k1, ishape_last):
if ishape > ishape_last[n[0] - k1]:
# bad input n
return - 1
return None
else:
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