Skip to content

Commit

Permalink
.tif and .tiff
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Jul 17, 2024
1 parent 3929c62 commit b9d33a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/aproc/proc/download/drivers/impl/tif_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def supports(item: Item) -> bool:
if item.assets.get(Role.data.value) is not None:
asset = item.assets.get(Role.data.value)
file_name = os.path.basename(asset.href)
return file_name.lower().endswith("tif") or file_name.lower().endswith("tiff")
return file_name.lower().endswith(".tif") or file_name.lower().endswith(".tiff")
else:
return False

Expand Down
2 changes: 1 addition & 1 deletion extensions/aproc/proc/ingest/drivers/impl/tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def to_item(self, url: str, assets: list[Asset]) -> Item:
return item

def __check_path__(path: str):
return (path.lower().endswith("tif") or path.lower().endswith("tiff")) and os.path.isfile(path) and os.path.exists(path)
return (path.lower().endswith(".tif") or path.lower().endswith(".tiff")) and os.path.isfile(path) and os.path.exists(path)

@staticmethod
def get_main_asset_format(root):
Expand Down

0 comments on commit b9d33a8

Please sign in to comment.