Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAC search use assets directly #16

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/catalog_to_xpublish/searchers/stac_search.py
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of any unintended consequences with this. It looks like this is used elsewhere in the Catalog-To-Xpublish code-base (e.g., in the _get_asset method).

Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _parse_assets(
dataset_info_dicts: Dict[str, Dict[str, Any]],
) -> None:
"""Adds all assets to the list + dict of datasets."""
for child_name, child in pystac_obj.get_assets().items():
for child_name, child in pystac_obj.assets.items():
# make sure the item type is supported
url_path = child.get_absolute_href()
if url_path.endswith('/'):
Expand Down
Loading