From b77a07e0c5471dfde2814734f4b1e89480065ebf Mon Sep 17 00:00:00 2001 From: Christian Kento Rasmussen <christian.kento@gmail.com> Date: Mon, 10 Jun 2024 14:47:29 +0200 Subject: [PATCH] convert check for both tif and tiff --- qim3d/io/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qim3d/io/convert.py b/qim3d/io/convert.py index f1dd14e8..f1981536 100644 --- a/qim3d/io/convert.py +++ b/qim3d/io/convert.py @@ -29,14 +29,14 @@ class Convert: if os.path.isfile(input_path): match input_ext, output_ext: - case (".tif", ".zarr"): + case (".tif", ".zarr") | (".tiff", ".zarr"): return self.convert_tif_to_zarr(input_path, output_path) case _: raise ValueError("Unsupported file format") # Load a directory elif os.path.isdir(input_path): match input_ext, output_ext: - case (".zarr", ".tif"): + case (".zarr", ".tif") | (".zarr", ".tiff"): return self.convert_zarr_to_tif(input_path, output_path) case _: raise ValueError("Unsupported file format") -- GitLab