Skip to content

Commit 5d53512

Browse files
author
luseverin
committed
Try to fix new linter issues
1 parent da1c965 commit 5d53512

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

climada/util/coordinates.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,8 @@ def match_coordinates(
12111211
"Input lat and lon coordinates do not seem to correspond"
12121212
" to geographic coordinates in degrees. This can be because"
12131213
" total extents are > 180 for lat or > 360 for lon, lat coordinates"
1214-
" are outside of -90<lat<90, or lon coordinates are outside of -540<lon<540."
1215-
" If you use degree values outside of these ranges,"
1214+
" are outside of -90<lat<90, or lon coordinates are outside of "
1215+
"-540<lon<540. If you use degree values outside of these ranges,"
12161216
" please shift the coordinates to the valid ranges."
12171217
)
12181218

@@ -1454,7 +1454,8 @@ def _nearest_neighbor_haversine(centroids, coordinates, unit, threshold):
14541454
num_warn = np.sum(dist > threshold)
14551455
if num_warn:
14561456
LOGGER.warning(
1457-
"Distance to closest centroid is greater than %s" "km for %s coordinates.",
1457+
"Distance to closest centroid is greater than %s",
1458+
"km for %s coordinates.",
14581459
threshold,
14591460
num_warn,
14601461
)
@@ -1509,7 +1510,8 @@ def _nearest_neighbor_euclidean(
15091510
num_warn = np.sum(dist > threshold)
15101511
if num_warn:
15111512
LOGGER.warning(
1512-
"Distance to closest centroid is greater than %s" "km for %s coordinates.",
1513+
"Distance to closest centroid is greater than %s",
1514+
"km for %s coordinates.",
15131515
threshold,
15141516
num_warn,
15151517
)

0 commit comments

Comments
 (0)