Commit d732f35f authored by Eva Börgens's avatar Eva Börgens
Browse files

allowing corner case with regions of only one coordinate

parent fe0dcc93
......@@ -78,8 +78,10 @@ def test_coordiantes(filename: str):
lon = np.array([r[0] for r in coords])
lat = np.array([r[1] for r in coords])
if len(lon)<2:
raise RuntimeError("Coordinate list of region have to contain at least 2 points")
return
#raise RuntimeError("Coordinate list of region have to contain at least 2 points")
u_lon = np.unique(lon)
u_lat = np.unique(lat)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment