Skip to content

Commit

Permalink
Rename .get_all_items_as_dict() to .item_collection_as_dict()
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 authored and Kirill888 committed Oct 7, 2024
1 parent 1c7abd0 commit 7a4f00d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion odc/stac/bench/_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def dump_site(site: Dict[str, Any], overwrite: bool = False) -> Dict[str, Any]:
cat = pystac_client.Client.open(api)
search = cat.search(**search)
print(f"Query API end-point: {api}")
all_features = search.get_all_items_as_dict()
all_features = search.item_collection_as_dict()
all_features["properties"] = dict(
api=search.url, search=search._parameters # pylint: disable=protected-access
)
Expand Down
2 changes: 1 addition & 1 deletion tests/notebooks/bench-prep-query.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
bbox=bbox,
)
print("Query API end-point")
all_features = search.get_all_items_as_dict()
all_features = search.item_collection_as_dict()

all_features["properties"] = dict(url=search.url, query=search._parameters)
all_features["properties"]
Expand Down

0 comments on commit 7a4f00d

Please sign in to comment.