Depending on whether you acquired czi-files with more than one z-plane, more than one channel, more than one image version and so on, the czifile module returns image data in different shape. Taking care of the different possibilities, can be achieved by the following solution (in case there are more conditions, that are not handled here, more elif loops can be added):
Depending on whether you acquired czi-files with more than one z-plane, more than one channel, more than one image version and so on, the czifile module returns image data in different shape. Taking care of the different possibilities, can be achieved by the following solution (in case there are more conditions, that are not handled here, more elif loops can be added):
Solution: in readers/microscopy_images.py: