[SciPy-user] problem in reading a indices

Alan G Isaac aisaac at american.edu
Thu Dec 13 08:16:41 EST 2007


On Thu, 13 Dec 2007, Xavier Barthelemy apparently wrote:
> ArrayWithData[i,int(choice[i].current[0])] 
> pm:
> and print type(ArrayWithData), ArrayWithData gives me 
> <type 'list'> [array([ 2.01,  5.01]),...] 

Sorry, missed your postscript.  (What does pm mean?)
So ArrayWithData is a list of arrays.  Then try
    ArrayWithData[i][otherindex]
since lists do not handle multiple indexes.

Cheers,
Alan Isaac






More information about the SciPy-User mailing list