Skip to content

Commit 4de8101

Browse files
fixed pylint issues
1 parent 06ff1aa commit 4de8101

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

climada/util/coordinates.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import shapely.vectorized
4747
import shapely.wkt
4848
from cartopy.io import shapereader
49-
from shapely.geometry import MultiPolygon, Point, Polygon, box
49+
from shapely.geometry import MultiPolygon, Point, box
5050
from sklearn.neighbors import BallTree
5151

5252
import climada.util.hdf5_handler as u_hdf5
@@ -1757,12 +1757,13 @@ def bounding_box_from_cardinal_bounds(*, northern, eastern, western, southern):
17571757
Returns
17581758
-------
17591759
tuple
1760-
The resulting normalized bounding box (min_lon, min_lat, max_lon, max_lat) with -180 <= min_lon < max_lon < 540
1760+
The resulting normalized bounding box (min_lon, min_lat, max_lon, max_lat)
1761+
with -180 <= min_lon < max_lon < 540
17611762
17621763
"""
17631764

17641765
# latitude bounds check
1765-
if not ((90 >= northern > southern >= -90)):
1766+
if not 90 >= northern > southern >= -90:
17661767
raise ValueError(
17671768
"Given northern bound is below given southern bound or out of bounds"
17681769
)

0 commit comments

Comments
 (0)