Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

AICSImage.get_image_dask_data returning zeros #570

@SK-UK

Description

@SK-UK

System and Software

  • aicsimageio Version: 4.10.0
  • Python Version: 3.11.5
  • Operating System: Windows 11 Enterprise 23H2
  • Jupyterlab 4.10.8

Description

Using a Jupyter notebook, when loading data using AICSImage.get_image_dask_data returns an array of zeros after using .compute() whereas using AICSImage.get_image_data returns the expected image (Micro-manager generated Democamera stripe images, which also load normally in FIJI). Got the same result in Spyder 3.11

Expected Behavior

The test image should have been loaded

Reproduction

A minimal example that exhibits the behavior.

import numpy as np
from aicsimageio import AICSImage
from pathlib import Path

Data_path = 'C:\Temp\DEMO'
Data_filename = 'DEMO_MMStack_Default.ome.tif'

Dpath = Path.resolve(Path(Data_path) / Data_filename)
img = AICSImage(Dpath)

lazy_t0 = img.get_image_dask_data("CZYX", T=0)
norm = img.get_image_data("CZYX", T=0)
t0 = lazy_t0.compute()

print(np.max(t0)) # returns 0
print(np.max(norm)) # returns 5846

Environment

*N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions