Skip to content

Commit

Permalink
removed sorting in asset dictionary in metadata_from_stac Open-EO#527
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVerelst committed Mar 14, 2024
1 parent 7062ba1 commit c4f2d6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions openeo/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,7 @@ def is_band_asset(asset: pystac.Asset) -> bool:

# Summaries is not a required field in a STAC collection, so also check the assets
for itm in collection.get_items():
band_assets = {
asset_id: asset
for asset_id, asset in dict(sorted(itm.get_assets().items())).items()
if is_band_asset(asset)
}
band_assets = {asset_id: asset for asset_id, asset in itm.get_assets().items() if is_band_asset(asset)}

for asset in band_assets.values():
asset_bands = get_band_metadata(asset.extra_fields)
Expand Down

0 comments on commit c4f2d6c

Please sign in to comment.