Skip to content

Commit fed482c

Browse files
authored
Resolve linter issue
1 parent 38d7a7d commit fed482c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/util/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ def get_resolution_1d(coords, min_resol=1.0e-8):
21992199
res = np.diff(np.unique(coords)) # always positive because unique is sorted
22002200
diff = np.abs(np.diff(coords))
22012201
mask = (res > min_resol) & np.isin(res, diff)
2202-
if not len(mask):
2202+
if len(mask) == 0:
22032203
raise ValueError(
22042204
"Cannot find a resolution higher than `min_resol` for the given coordinates"
22052205
)

0 commit comments

Comments
 (0)