Skip to content

Commit

Permalink
fix comments from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Nov 18, 2024
1 parent ad90d24 commit 7d5db57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion conf/download_drivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ drivers:
private_key_id: $APROC_INPUT_STORAGE_API_KEY_PRIVATE_KEY_ID
private_key: $APROC_INPUT_STORAGE_API_KEY_PRIVATE_KEY
headers:
# TODO: be able to configure them
priority: 1
4 changes: 3 additions & 1 deletion extensions/aproc/proc/download/drivers/impl/zarr_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def init(configuration: dict):
# Implements drivers method
def supports(item: Item) -> bool:
data = item.assets.get(Role.data.value)
return item.properties.constellation.lower() == "Sentinel-2".lower() \
return item.properties.constellation \
and item.properties.processing__level \
and item.properties.constellation.lower() == "Sentinel-2".lower() \
and item.properties.processing__level.lower() == "L1C".lower() \
and data is not None and data.href is not None and (
# data.href.startswith("s3://")
Expand Down

0 comments on commit 7d5db57

Please sign in to comment.