From 7a4f00d332f02ebf60ad48bdd2fed4646d2d1414 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:37:26 +1300 Subject: [PATCH] Rename .get_all_items_as_dict() to .item_collection_as_dict() --- odc/stac/bench/_prepare.py | 2 +- tests/notebooks/bench-prep-query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/odc/stac/bench/_prepare.py b/odc/stac/bench/_prepare.py index 25767998..c7353972 100644 --- a/odc/stac/bench/_prepare.py +++ b/odc/stac/bench/_prepare.py @@ -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 ) diff --git a/tests/notebooks/bench-prep-query.py b/tests/notebooks/bench-prep-query.py index 1801d50b..7d8e1d0e 100644 --- a/tests/notebooks/bench-prep-query.py +++ b/tests/notebooks/bench-prep-query.py @@ -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"]