Skip to content

Commit

Permalink
Rename query.get_items() to query.items()
Browse files Browse the repository at this point in the history
The `.get_items()` method has been deprecated since stac-utils/pystac-client#206, use `.items()` instead.
  • Loading branch information
weiji14 authored and Kirill888 committed Oct 7, 2024
1 parent 34e5539 commit 136eb47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ odc.stac.load
catalog = pystac_client.Client.open(...)
query = catalog.search(...)
xx = odc.stac.load(
query.get_items(),
query.items(),
bands=["red", "green", "blue"],
)
xx.red.plot.imshow(col="time")
Expand Down
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Load STAC :py:class:`pystac.Item`\s into :py:class:`xarray.Dataset`.
catalog = pystac_client.Client.open(...)
query = catalog.search(...)
xx = odc.stac.load(
query.get_items(),
query.items(),
bands=["red", "green", "blue"],
resolution=100,
)
Expand Down
4 changes: 2 additions & 2 deletions odc/stac/_stac_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def load(
catalog = pystac.Client.open(...)
query = catalog.search(...)
xx = odc.stac.load(
query.get_items(),
query.items(),
bands=["red", "green", "blue"],
)
xx.red.plot.imshow(col="time")
Expand Down Expand Up @@ -298,7 +298,7 @@ def load(
)
xx = stac.load(
query.get_items(),
query.items(),
bands=["red", "green", "blue"],
resolution=100, # 1/10 of the native 10m resolution
patch_url=pc.sign,
Expand Down

0 comments on commit 136eb47

Please sign in to comment.