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

2008-01-23 Thread James Battat
Robert, Thanks for solving that puzzle! I'll get our group on the same 1.0.x numpy release. Take care, James ** Harvard University Dept. of Astronomy 60 Garden Street MS-10 Cambridge, MA 02138 phone 617.496.5988 lab 617.495.3267 email [EMAIL PROTECTED] web http://www

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

2008-01-23 Thread Robert Kern
James Battat wrote: > 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.

[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]),