Files
ndbioimage/tests/test_open.py
Wim Pomp 506b449f4d - read metadata into ome structure
- pytest
- use pathlib
- series as part of the path: path/PosN
- summary only shows some available metadata
- allow dict in Imread[dict(c=c, z=z, t=t)]
- bfread in different process so the user can start another jvm
- deal with multiple images (series/positions) in czi files
- use jpype instead of javabridge/bioformats
- poetry for install
2023-06-29 14:23:03 +02:00

11 lines
314 B
Python

import pytest
from pathlib import Path
from ndbioimage import Imread
@pytest.mark.parametrize("file",
[file for file in (Path(__file__).parent / 'files').iterdir() if file.suffix != '.pzl'])
def test_open(file):
with Imread(file) as im:
print(im[dict(c=0, z=0, t=0)].mean())