File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,11 @@ def get_color_palette(
94
94
# very defensive since this function is not documented in rasterio
95
95
ndv_tuple : tuple [float , ...] = dataset .get_nodatavals ()
96
96
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)
98
99
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 ])
100
102
return convert_colormap_to_palette (ds_cmap )
101
103
except ValueError :
102
104
return None
You can’t perform that action at this time.
0 commit comments