[SciPy-user] Indexing question

Angus McMorland amcmorl at gmail.com
Thu Dec 18 09:29:11 EST 2008


Hi Alex,

2008/12/18 Alexander Borghgraef <alexander.borghgraef.rma at gmail.com>:
> On Wed, Dec 17, 2008 at 4:52 PM, Angus McMorland <amcmorl at gmail.com> wrote:
>> There are two tricks that will help you out here:
>>
>> (1) indexing with a list is treated differently to indexing with an array
>
>  I tend to tuple my coordinate arrays. Seems to work also with your
> example. Does this function the same way, or are there hidden
> diffferences?

As far as I understand, these are the same thing, i.e. both 'basic
indexing'. The different 'advanced indexing' rules apply when ndarrays
are used as indices.

Angus.
-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh



More information about the SciPy-User mailing list