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

fix bug with multiz

parent 1cd88476
Branches
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ def load_mm_images(rootdir, roi=1, tile=True, pos=False,
if mmversion == 1:
stack_order = ['position', 'z', 'time', 'channels']
else:
# Read the stack order from metadata (before it was set to ['position', 'time', 'channels', 'z'])
stack_order = get_axisorder(metadata)
IJ.log('MM axis order')
IJ.log(','.join(stack_order))
......@@ -32,6 +31,8 @@ def load_mm_images(rootdir, roi=1, tile=True, pos=False,
stack_order = stack_order[::-1]
stack_order[stack_order.index('channel')] = 'channels'
# stack_order = ['position', 'time', 'channels', 'z']
# if not tile and pos:
# stack_order = ['position', 'time', 'z', 'channels']
image_files = generate_file_list(metadata, rootdir, roi, tile, pos, stack_order)
......@@ -52,7 +53,7 @@ def load_mm_images(rootdir, roi=1, tile=True, pos=False,
# dim starts at one in java not zero
# Size of channels
nchannel = dimensions['channels']
# Size of z
# Size of z
nslice = dimensions['z']
# The rest of dimensions goes to time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment