Skip to content

Commit

Permalink
allow multiple hrefs, take first
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Dec 6, 2024
1 parent e1fb45a commit b397ae8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xcube_stac/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def parse_item(self, item: pystac.Item, **open_params) -> pystac.Item:
)
elif len(hrefs) > 1:
LOG.warning(
f"N unique jp2 file found: {hrefs} are found "
f"for {href_base}/**/*_{asset_name}_{res_select}m.jp2"
f"Multiple hrefs {hrefs} are found "
f"for {href_base}/**/*_{asset_name}_{res_select}m.jp2. "
f"Href {hrefs[0]} is taken."
)
href_mod = hrefs[0]
Expand Down Expand Up @@ -387,8 +387,8 @@ def parse_item(self, item: pystac.Item, **open_params) -> pystac.Item:
)
elif len(hrefs) > 1:
LOG.warning(
f"N unique jp2 file found: {hrefs} are found "
f"for {href_base}/**/*_{asset_name}_{res_select}m.jp2"
f"Multiple hrefs {hrefs} are found "
f"for {href_base}/**/*_{asset_name}_{res_select}m.jp2. "
f"Href {hrefs[0]} is taken."
)
href_mod = hrefs[0]
Expand Down

0 comments on commit b397ae8

Please sign in to comment.