Skip to content

Commit 64baf7b

Browse files
author
Chahan Kropf
committed
Revert bounds and normalize degree check as test were broadly failing.
1 parent df85382 commit 64baf7b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

climada/util/coordinates.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ def lon_normalize(lon, center=0.0):
232232
Normalized longitudinal coordinates. Since the input `lon` is modified in place (!), the
233233
returned array is the same Python object (instead of a copy).
234234
"""
235-
check_if_geo_coords(lat=[0], lon=lon)
236235
if center is None:
237236
center = 0.5 * sum(lon_bounds(lon))
238237
bounds = (center - 180, center + 180)
@@ -287,7 +286,6 @@ def lon_bounds(lon, buffer=0.0):
287286
bounds : tuple (lon_min, lon_max)
288287
Bounding box of the given points.
289288
"""
290-
check_if_geo_coords(lat=[0], lon=lon)
291289
lon = lon_normalize(lon.copy())
292290
lon_uniq = np.unique(lon)
293291
lon_uniq = np.concatenate([lon_uniq, [360 + lon_uniq[0]]])

0 commit comments

Comments
 (0)