Skip to content

Unsure if extra scene in file or sub-block attachment #83

@evamaxfield

Description

@evamaxfield

System and Software

  • aicspylibczi Version: 3.0.1
  • Python Version: 3.9
  • Operating System: Ubuntu 20.04

Description

A clear description of the bug

Using the test file aicsimageio/tests/resources/variable_scene_shape_first_scene_pyramid.czi -- We can tell this by how it is read in:

from aicspylibczi import CziFile
r = CziFile("aicsimageio/tests/resources/variable_scene_shape_first_scene_pyramid.czi")
r.get_dims_shape()  # returns: [{'X': (0, 2752), 'Y': (0, 2208), 'C': (0, 3), 'M': (0, 9), 'S': (0, 1)}]

The dims shape above shows that aicspylibczi is reading only a single scene, the first of which is mosaic. AND note that this file is also a pyramid and we are reading the highest resolution of the pyramid.

But if we use bfconvert to convert this file to OME-TIFF we can see there are actually two scenes in the file.
bfconvert -noflat -stitch aicsimageio/tests/resources/variable_scene_shape_first_scene_pyramid.czi test-convert.ome.tiff

-noflat and -stitch to ensure that this stays a single file and that the scenes stay together.

from aicsimageio.readers.ome_tiff_reader import OmeTiffReader
r = OmeTiffReader("test-convert.ome.tiff")
r.scenes  # returns ('Image:0', 'Image:1')

Expected Behavior

What did you expect to happen instead?

All scene information to be returned from the reader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions