Skip to content

Commit b74d6b0

Browse files
committed
Add test script for bioformats.import_image()
1 parent 1d1dddf commit b74d6b0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# @ File (label="Select the python-imcflibs testdata directory", style="directory") PYTHON_IMCFLIBS_TESTDATA
2+
3+
import os
4+
from imcflibs.pathtools import join2
5+
from imcflibs.imagej import bioformats
6+
7+
8+
testfile = join2(PYTHON_IMCFLIBS_TESTDATA, "systems/lsm700/beads/10x_phmax.czi")
9+
print(testfile)
10+
11+
assert os.path.exists(testfile)
12+
13+
imps = bioformats.import_image(testfile)
14+
assert len(imps) > 0
15+
imp = imps[0]
16+
imp.show()
17+
18+
print("Test completed, a new multi-channel stack should have opened. ")

0 commit comments

Comments
 (0)