Skip to content
Snippets Groups Projects
Commit 589f99ab authored by Hugo CHAUVET's avatar Hugo CHAUVET :bicyclist:
Browse files

Fix bug when stack is one position multi-z (allow to select the z correctly)

parent 551d1f03
No related branches found
No related merge requests found
...@@ -434,10 +434,16 @@ def process_tiles(implus_tiles_stack, channel, z, implus_white_corr, implus_dark ...@@ -434,10 +434,16 @@ def process_tiles(implus_tiles_stack, channel, z, implus_white_corr, implus_dark
if data.numDimensions() == 5: if data.numDimensions() == 5:
inter = Intervals.createMinMax(0, 0, channel, z-1, 0, inter = Intervals.createMinMax(0, 0, channel, z-1, 0,
xLen-1, yLen-1, channel, z-1, Ntiles-1) xLen-1, yLen-1, channel, z-1, Ntiles-1)
# Data are x,y,channel,t # Data are x,y,channel, (t or z)
if data.numDimensions() == 4: if data.numDimensions() == 4:
if Ntiles > 1:
# x, y, channel, t
inter = Intervals.createMinMax(0, 0, channel, 0, inter = Intervals.createMinMax(0, 0, channel, 0,
xLen-1, yLen-1, channel, Ntiles-1) xLen-1, yLen-1, channel, Ntiles-1)
else:
# x, y, channel, z
inter = Intervals.createMinMax(0, 0, channel, z-1,
xLen-1, yLen-1, channel, z-1)
if inter is not None: if inter is not None:
data = ops.transform().crop(data, inter) data = ops.transform().crop(data, inter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment