Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Nov 26, 2024
1 parent 1311f0d commit 09bc26b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xcube_stac/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ def parse_item(self, item: pystac.Item, **open_params) -> pystac.Item:
hrefs = self._fs.glob(
f"{href_base}/**/*_{asset_name}_{res_select}m.jp2"
)
assert len(hrefs) == 1, "No unique jp2 file found"
assert (
len(hrefs) == 1
), f"No unique jp2 file found; these hrefs were found {hrefs} for {href_base}/**/*_{asset_name}_{res_select}m.jp2"
href_mod = hrefs[0]
time_end = hrefs[0].split("/IMG_DATA/")[0][-15:]
else:
Expand Down

0 comments on commit 09bc26b

Please sign in to comment.