- 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:
+3
-1
@@ -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"
|
||||
],
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user