[Numpy-discussion] Latest Array-Interface PEP

Torgil Svensson torgil.svensson at gmail.com
Fri Jan 12 13:38:20 CST 2007


On 1/12/07, Travis Oliphant <oliphant at ee.byu.edu> wrote:
> This is true.   So at what level do we propose the API.  Single-item
> access for sure, but  what about
>
> array_interface->get_block_from_slice() ?
>
> Such a thing would be very useful for all kinds of large data-sets, from
> images, and videos, to scientific data-sets.

That's definitely desirable. If the implementation can't handle that
it can always throw.


> > If we want the whole in-memory-RGB-copy we could just take the
> > RGB-view, pass it to numpy and force numpy to do a copy. The module
> > can then, in either case, operate on the image through numpy or return
> > a numpy object to the user. (numpy is of course integrated in python
> > by then)
> >
> Getting this array_interface into Python goes a long way into making
> that happen, I think.

Agree. We just have to be careful where to put the different pieces.


More information about the Numpy-discussion mailing list