Skip to content

Commit f6c52bf

Browse files
Add pyproject.toml and filter max-projection tifs from glob
1 parent 3b5ecee commit f6c52bf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

flamingo_tools/data_conversion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ def convert_lightsheet_to_bdv(
300300
convert_to_ome_zarr = True
301301

302302
files = sorted(glob(os.path.join(root, f"**/*{file_ext}"), recursive=True))
303+
if file_ext == ".tif":
304+
# We need to exlcude the max-projetion tifs that are saved alongside the tifs.
305+
files = [ff for ff in files if "_MP.tif" not in ff]
303306
# Raise an error if we could not find any files.
304307
if len(files) == 0:
305308
raise ValueError(f"Could not find any files in {root} with extension {file_ext}.")

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=64.0", "wheel"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)