Re: [Numpy-discussion] find_common_type broken?

2009-07-12 Thread Citi, Luca
> That is what I thought at first, but then what is the difference between > array_types and scalar_types? Function signature is: > *find_common_type(array_types, scalar_types)* As I understand it, the difference is that in the following case: np.choose(range(5), [np.arange(1,6), np.zeros(5, dtyp

Re: [Numpy-discussion] find_common_type broken?

2009-07-12 Thread Ralf Gommers
On Sun, Jul 12, 2009 at 6:54 AM, Citi, Luca wrote: > Hi, > I am not very confident with types but I will try to give you > my opinion. > > As for the first part of the question > > > >>> np.find_common_type([np.ndarray, np.ma.MaskedArray, np.recarray], []) > > dtype('object') > > I think that the

Re: [Numpy-discussion] numpy for 2.6 on mac os x

2009-07-12 Thread David Cournapeau
David Cournapeau wrote: > On Sat, Jul 11, 2009 at 12:19 AM, Tommy Grav wrote: > >> The current dmg on the numpy download pages is buildt against 2.5. Is >> there any plans >> to make one for 2.6 or do I have to compile from the source? >> A 2.6 dmg is now available on sourceforge. David _

Re: [Numpy-discussion] find_common_type broken?

2009-07-12 Thread Citi, Luca
Hi, I am not very confident with types but I will try to give you my opinion. As for the first part of the question > >>> np.find_common_type([np.ndarray, np.ma.MaskedArray, np.recarray], []) > dtype('object') I think that the first argument of np.find_common_type should be the type of an _eleme