- better python errors
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ from ndbioimage import Imread
|
||||
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"
|
||||
if file.suffix.lower() not in [".pzl", ".xml", "", ".txt"]
|
||||
],
|
||||
)
|
||||
def test_open(file):
|
||||
|
||||
@@ -18,7 +18,7 @@ def array():
|
||||
@pytest.fixture()
|
||||
def image(array):
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
file = Path(folder) / "tiff" / "test.tif"
|
||||
file = Path(folder) / "test.tif"
|
||||
tiffwrite(file, array, "yxczt")
|
||||
with Imread(file, axes="yxczt") as im:
|
||||
yield im
|
||||
|
||||
Reference in New Issue
Block a user