Files
ndbioimage/tests/test_open.py
Wim Pomp bdd7a5399c - set dtype according to pixel type in file
- cziread bugfix
- add reader for broken files saved by Fiji
- make ndread work for arrays with less dimensions than 5
- relative imports
- remove some old functions
- make bfread check if it can open the file
2023-08-14 17:01:03 +02:00

13 lines
394 B
Python

import pytest
from pathlib import Path
from ndbioimage import Imread, ReaderNotFoundError
@pytest.mark.parametrize("file", (Path(__file__).parent / 'files').iterdir())
def test_open(file):
try:
with Imread(file) as im:
print(im[dict(c=0, z=0, t=0)].mean())
except ReaderNotFoundError:
assert len(Imread.__subclasses__()), "No subclasses for Imread found."