Skip to content

Commit 5eb7753

Browse files
author
Chahan Kropf
committed
Add error to docstring and return value
1 parent 3f8f2ad commit 5eb7753

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

climada/util/coordinates.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def check_if_geo_coords(lat, lon):
9797
lat, lon : ndarrays of floats, same shape
9898
Latitudes and longitudes of points.
9999
100+
Raises
101+
------
102+
ValueError : if lat or lon out of likely geographical coordinate bounds
103+
100104
Returns
101105
-------
102106
test : bool
@@ -120,7 +124,7 @@ def check_if_geo_coords(lat, lon):
120124
" If you use degree values outside of these ranges,"
121125
" please shift the coordinates to the valid ranges."
122126
)
123-
return
127+
return True
124128

125129

126130
def get_crs_unit(coords):

0 commit comments

Comments
 (0)