On 12/07/2012 23:32, Chao YUE wrote:
> Thanks all for the discussion. Actually I am trying to use something
> like numpy ndarray indexing in the function. Like when I call:
>
> func(a,'1:3,:,2:4'), it knows I want to retrieve a[1:3,:,2:4], and
> func(a,'1:3,:,4') for a[1:3,:,4] ect.
> I am very close now.

I don't see the advantage of this approach over directly using the 
sliced array as an argument of your function, as in func(a[1:3,:,4]).

Can you elaborate more why you are going through this route?

Cheers,
Daniele
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to