Skip to content

Commit a260848

Browse files
committed
Update thresholds in test to be consisten with handling of thresholds in non-degree units
1 parent c67d6da commit a260848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

climada/util/test/test_coordinates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,15 +1360,15 @@ def setUp_match_coordinates(self):
13601360
# test with different unit
13611361
self.expected_results = {
13621362
"degree": [
1363-
# test with different thresholds (in degree)
1363+
# test with different thresholds (in degree (converted to km))
13641364
(100, [2, 1, 2, 0, 3, -1, 4]),
13651365
(20, [-1, 1, 2, 0, 3, -1, -1]),
13661366
(0, [-1, 1, 2, 0, -1, -1, -1]),
13671367
],
13681368
"m": [
13691369
# test with different thresholds (in m)
1370-
(100, [2, 1, 2, 0, 3, -1, -1]),
1371-
(20, [-1, 1, 2, 0, 3, -1, -1]),
1370+
(100e3, [2, 1, 2, 0, 3, -1, -1]),
1371+
(20e3, [-1, 1, 2, 0, 3, -1, -1]),
13721372
(0, [-1, 1, 2, 0, -1, -1, -1]),
13731373
],
13741374
"km": [

0 commit comments

Comments
 (0)