Re: [Numpy-discussion] where() on mac/pc return different things

2008-01-23 Thread James Battat
http://www.cfa.harvard.edu/~jbattat ** On Wed, 23 Jan 2008, Robert Kern wrote: > James Battat wrote: > > Hi, > > > > numpy.where() returns different things on my windowsXP machine than on my > > collaborator's mac osx machine. > > > &

[Numpy-discussion] where() on mac/pc return different things

2008-01-23 Thread James Battat
Hi, numpy.where() returns different things on my windowsXP machine than on my collaborator's mac osx machine. For example, consider: >>> import numpy >>> a = numpy.array([1,2,3,4]) >>> b = numpy.where( a > 2 ) On WindowsXP (python 2.4.2, numpy 1.0.1), I get: >>> print b (array([2, 3]),