Skip to content

Add a converter for python arrays #2

@hinerm

Description

@hinerm

Currently passing a python array results in it being wrapped in a single Java object. We should add a converter implementation to automatically unwrap python arrays to Java arrays.

Without a converter, python arrays have to be explicitly unwrapped, e.g.:

from jarray import array
blank=ops.createimg(array([100, 50], 'l'))

(thanks @bnorthan for that!)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions