- 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
13 lines
394 B
Python
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."
|