Skip to content

Commit 734541a

Browse files
luseverinchahank
andauthored
Remove mention to calling functions in error message in _nearest_neighbor_approx
Co-authored-by: Chahan M. Kropf <chahan.kropf@usys.ethz.ch>
1 parent 2f6bb5e commit 734541a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

climada/util/coordinates.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,7 @@ def _nearest_neighbor_approx(
13171317
if unit != "degree":
13181318
raise ValueError(
13191319
"Only degree unit is supported for nearest neighbor matching using"
1320-
"'approx' distance. Please use euclidean distance by setting "
1321-
"'distance=euclidean' in the match_coordinates or match_centroids "
1322-
"function when using units that are not degrees."
1320+
"'approx' distance."
13231321
)
13241322
# Compute only for the unique coordinates. Copy the results for the
13251323
# not unique coordinates

0 commit comments

Comments
 (0)