diff --git a/src/tiledb/cloud/bioimg/helpers.py b/src/tiledb/cloud/bioimg/helpers.py index 1300b91d7..031496bfb 100644 --- a/src/tiledb/cloud/bioimg/helpers.py +++ b/src/tiledb/cloud/bioimg/helpers.py @@ -30,6 +30,9 @@ def get_logger_wrapper( return logger +_SUPPORTED_EXTENSIONS = (".tiff", ".tif", ".svs", ".tdb") + + def get_uris( source: Sequence[str], output_dir: str, config: Mapping[str, Any], output_ext: str ): @@ -46,7 +49,7 @@ def create_output_path(input_file, output_dir) -> str: def iter_paths(sequence) -> Iterator[Tuple]: for uri in sequence: - if uri.endswith((".tiff", ".tif", ".tdb")): + if uri.endswith(_SUPPORTED_EXTENSIONS): yield uri, create_output_path(uri, output_dir) if len(source) == 1: