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(
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
You can’t perform that action at this time.
0 commit comments