Skip to content

Commit 0ffadc4

Browse files
committed
add a multi-position file to testing
1 parent 7de2097 commit 0ffadc4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/runtests.jl

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ using Base.Test
4242
@test size(img[Axis{:z}(1)]) == (167, 439, 3)
4343
end
4444
end
45+
@testset "Multi position OME-TIFF" begin
46+
open("testdata/singles/background_1_MMStack.ome.tif") do f
47+
s = Stream(format"OMETIFF", f, OMETIFF.extract_filename(f))
48+
img = OMETIFF.load(s)
49+
@test size(img) == (1024, 1024, 9)
50+
# check position indexing
51+
@test size(img[Axis{:position}(:Pos1)]) == (1024, 1024)
52+
end
53+
end
4554
end
4655
@testset "Multi file OME-TIFFs" begin
4756
@testset "Multi file Z stack with master file" begin
Binary file not shown.

0 commit comments

Comments
 (0)