Skip to content

Commit

Permalink
Deprecate bands as well
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Jan 30, 2024
1 parent 115f150 commit 6d33050
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions localtileserver/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def get_leaflet_tile_layer(
warnings.warn(
"The `band` keyword argument is deprecated. Please use `indexes` instead.",
)
elif "bands" in kwargs:
indexes = kwargs.pop("bands")
warnings.warn(
"The `bands` keyword argument is deprecated. Please use `indexes` instead.",
)
if "cmap" in kwargs:
colormap = kwargs.pop("cmap")
warnings.warn(
Expand Down Expand Up @@ -178,6 +183,11 @@ def get_folium_tile_layer(
warnings.warn(
"The `band` keyword argument is deprecated. Please use `indexes` instead.",
)
elif "bands" in kwargs:
indexes = kwargs.pop("bands")
warnings.warn(
"The `bands` keyword argument is deprecated. Please use `indexes` instead.",
)
if "cmap" in kwargs:
colormap = kwargs.pop("cmap")
warnings.warn(
Expand Down

0 comments on commit 6d33050

Please sign in to comment.