Skip to content

Commit c4f2d6c

Browse files
removed sorting in asset dictionary in metadata_from_stac Open-EO#527
1 parent 7062ba1 commit c4f2d6c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

openeo/metadata.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,7 @@ def is_band_asset(asset: pystac.Asset) -> bool:
567567

568568
# Summaries is not a required field in a STAC collection, so also check the assets
569569
for itm in collection.get_items():
570-
band_assets = {
571-
asset_id: asset
572-
for asset_id, asset in dict(sorted(itm.get_assets().items())).items()
573-
if is_band_asset(asset)
574-
}
570+
band_assets = {asset_id: asset for asset_id, asset in itm.get_assets().items() if is_band_asset(asset)}
575571

576572
for asset in band_assets.values():
577573
asset_bands = get_band_metadata(asset.extra_fields)

0 commit comments

Comments
 (0)