Skip to content

Commit

Permalink
r.in.wms: Replace long-deprecated np.arrayrange alias with `np.aran…
Browse files Browse the repository at this point in the history
…ge` (#4629)
  • Loading branch information
arohanajit authored Nov 1, 2024
1 parent 4385b26 commit 4964f45
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/r.in.wms/wms_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
from wms_base import GetEpsg, GetSRSParamVal, WMSBase
from wms_cap_parsers import OnEarthCapabilitiesTree, WMTSCapabilitiesTree

np.arrayrange = np.arange


class WMSDrv(WMSBase):
def _download(self):
Expand Down Expand Up @@ -288,9 +286,9 @@ def _pct2rgb(self, src_filename, dst_filename):

# Build color table
lookup = [
np.arrayrange(256),
np.arrayrange(256),
np.arrayrange(256),
np.arange(256),
np.arange(256),
np.arange(256),
np.ones(256) * 255,
]

Expand Down

0 comments on commit 4964f45

Please sign in to comment.