- open tiff seq folders with bioformats_java by finding the first tiff recursively

- make PyView serializable by skipping the ome field
- fix python tests
This commit is contained in:
w.pomp
2026-07-13 15:16:10 +02:00
parent 0ce1187a43
commit 916d301f1b
7 changed files with 76 additions and 53 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ from ndbioimage import Imread
"file",
[
file
for file in (Path(__file__).parent / "files").iterdir()
for path in (Path(__file__).parent / "files").iterdir()
if path.is_dir() and path.name != "czi_xml"
for file in path.iterdir()
if not file.suffix == ".pzl"
],
)
+1 -1
View File
@@ -18,7 +18,7 @@ def array():
@pytest.fixture()
def image(array):
with tempfile.TemporaryDirectory() as folder:
file = Path(folder) / "test.tif"
file = Path(folder) / "tiff" / "test.tif"
tiffwrite(file, array, "yxczt")
with Imread(file, axes="yxczt") as im:
yield im
+1 -1
View File
@@ -17,7 +17,7 @@ def array():
@pytest.fixture()
def image(array):
with tempfile.TemporaryDirectory() as folder:
file = Path(folder) / "test.tif"
file = Path(folder) / "tiff" / "test.tif"
tiffwrite(file, array, "yxczt")
with Imread(file, axes="yxczt") as im:
yield im