Skip to content

Commit bc0a938

Browse files
committed
GITC-7208: Fixed ruff pre-commit complaint about line length
1 parent 0491fd8 commit bc0a938

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hybig/color_utility.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ def get_color_palette(
9494
# very defensive since this function is not documented in rasterio
9595
ndv_tuple: tuple[float, ...] = dataset.get_nodatavals()
9696
if ndv_tuple is not None and len(ndv_tuple) > 0:
97-
# this service only supports one ndv, so just use the first one (usually the only one)
97+
# this service only supports one ndv, so just use the first one
98+
# (usually the only one)
9899
ds_cmap['nv'] = ds_cmap[ndv_tuple[0]]
99-
ds_cmap.pop(ndv_tuple[0]) # then remove the value associated with the ndv key
100+
# then remove the value associated with the ndv key
101+
ds_cmap.pop(ndv_tuple[0])
100102
return convert_colormap_to_palette(ds_cmap)
101103
except ValueError:
102104
return None

0 commit comments

Comments
 (0)