Re: [Numpy-discussion] take semantics (bug?)

2006-12-03 Thread Robert Kern
Michael McNeil Forbes wrote: > What are the semantics of the "take" function? > > I would have expected that the following have the same shape and size: > a = array([1,2,3]) inds = a.nonzero() a[inds] > array([1, 2, 3]) a.take(inds) > array([[1, 2, 3]]) > > Is there a bug som

[Numpy-discussion] take semantics (bug?)

2006-12-03 Thread Michael McNeil Forbes
What are the semantics of the "take" function? I would have expected that the following have the same shape and size: >>> a = array([1,2,3]) >>> inds = a.nonzero() >>> a[inds] array([1, 2, 3]) >>> a.take(inds) array([[1, 2, 3]]) Is there a bug somewhere here or is this intentional? Michael. __

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Arild B. Næss
Den 3. des. 2006 kl. 18.23 skrev Steve Lianoglou: >>> You got my hopes up for a second there, but I can do neither: >>> >>> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) >>> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin >>> Type "help", "copyright", "credits" or "license" for more >>> i

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Steve Lianoglou
>> You got my hopes up for a second there, but I can do neither: >> >> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) >> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin >> Type "help", "copyright", "credits" or "license" for more >> information. > from numpy import * >> Running from nu

Re: [Numpy-discussion] nan functions convert matrix to array

2006-12-03 Thread Pierre GM
On Friday 01 December 2006 17:56, Keith Goodman wrote: ... > Would it break anything to change the first line of the nan functions from > a = array(a) > to > a = asanyarray(a) > ? Seeing what the nan functions do, I don't think that would be a problem. An expception would be raised if the operat

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Erin Sheldon
On 12/3/06, Arild B. Næss <[EMAIL PROTECTED]> wrote: > > > Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux: > > On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote: > This gets me further, actually the installation seems to complete. > However, when I type > > import Numeric > in Python,

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Arild B. Næss
Den 3. des. 2006 kl. 17.00 skrev Gael Varoquaux: On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote: This gets me further, actually the installation seems to complete. However, when I type import Numeric in Python, I get the usual ImportError: No module named Numeric. Thats norm

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Gael Varoquaux
On Sun, Dec 03, 2006 at 04:56:49PM +0100, Arild B. Næss wrote: > This gets me further, actually the installation seems to complete. > However, when I type > >> import Numeric > in Python, I get the usual ImportError: No module named Numeric. Thats normal, you installed numpy. > >> import nump

Re: [Numpy-discussion] problems installing NumPy on OSX

2006-12-03 Thread Arild B. Næss
Den 5. nov. 2006 kl. 20.26 skrev Steve Lianoglou: >> I'm sorry, I was a tad too quick typing there. I meant to say "And do >> I even need to [install Xcode] to run numpy?" Robert pointed out that >> a lot things mentioned in the install guide were necessary to run >> scipy, but that you could run