Skip to content

ndinterp methods fails with ResourceBackedDaskArray from aicsimageio #360

@sommerc

Description

@sommerc

Hi there,

I want to use ndinterp.affine_transform on images loaded with aicsimageio/nd2. For some image formats (e.g. .nd2) aicsimageio returns a ResourceBackedDaskAray which is an instance of da.Array.

However the type check for da.core.Array fails.

img = AICSImage("image.nd2")
affine_transform(img.dask_data, matrix)

ValueError: Array is already a dask array. Use 'asarray' or 'rechunk' instead.

Cheers,
Chris

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