[SciPy-user] Indexing question

Angus McMorland amcmorl@gmail....
Thu Dec 18 08:29:11 CST 2008

Hi Alex,

2008/12/18 Alexander Borghgraef <alexander.borghgraef.rma@gmail.com>:
> On Wed, Dec 17, 2008 at 4:52 PM, Angus McMorland <amcmorl@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.

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

More information about the SciPy-user mailing list