Skip to content

Review treatment of __array__ attribute #341

Description

@ctrueden

I'm writing this issue from memory after finding an old note to myself that I wrote in response to a conversation I had with @tlambert03 some time last year. 😅

  • The imagej.images.is_arraylike function checks for four attributes: shape, dtype, __array__, and ndim. Is this correct?

  • The classes that augment Java-side net.imglib2.RandomAccessibleInterval and related objects to be more arraylike include implementations of shape, dtype, and ndim on the appropriate superinterfaces, but nothing implements __array__. Should it?

Ideas and opinions welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions