@@ -721,6 +721,8 @@ class _StacMetadataParser:
721721 Do not use/expose it directly in user (facing) code
722722 """
723723
724+ # TODO: better, more compact name: StacMetadata is a bit redundant, technically we're also not "parsing" here either
725+
724726 def __init__ (self , * , logger = _log , log_level = logging .DEBUG , supress_duplicate_warnings : bool = True ):
725727 # TODO: argument to set some kind of reference to a root document to improve logging messages?
726728 self ._logger = logger
@@ -814,6 +816,7 @@ def bands_from_stac_catalog(self, catalog: pystac.Catalog, *, on_empty: str = _O
814816 """
815817 # TODO: "eo:bands" vs "bands" priority based on STAC and EO extension version information
816818 summaries = catalog .extra_fields .get ("summaries" , {})
819+ self ._warn (f"bands_from_stac_catalog with { summaries .keys ()= } (which is non-standard)" )
817820 if "eo:bands" in summaries :
818821 if _PYSTAC_1_9_EXTENSION_INTERFACE and not catalog .ext .has ("eo" ):
819822 self ._warn_undeclared_metadata (field = "eo:bands" , ext = "eo" )
@@ -863,6 +866,7 @@ def bands_from_stac_collection(
863866 return self ._bands_from_item_assets (item_assets )
864867 # If no band metadata so far: traverse items in collection
865868 elif consult_items :
869+ self ._warn ("bands_from_stac_collection: consulting items for band metadata" )
866870 bands = _BandList .merge (
867871 self .bands_from_stac_item (
868872 item = i , consult_collection = False , consult_assets = consult_assets , on_empty = _ON_EMPTY_IGNORE
0 commit comments