Re: [Numpy-discussion] calculating weighted majority using two 3D arrays

2008-03-06 Thread Timothy Hochberg
On Thu, Mar 6, 2008 at 11:37 AM, Gregory, Matthew < [EMAIL PROTECTED]> wrote: > Eads, Damian wrote: > > You may need to be a bit more specific by what you mean by > > weighted majority. What are the range of values for values > > and weights, specifically? This sounds a lot like pixel > > classifi

Re: [Numpy-discussion] calculating weighted majority using two 3D arrays

2008-03-06 Thread Damian Eads
Hi Gregory, Gregory, Matthew wrote: > Eads, Damian wrote: >> You may need to be a bit more specific by what you mean by >> weighted majority. What are the range of values for values >> and weights, specifically? This sounds a lot like pixel >> classification where each pixel is classified with

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Christopher Barker
I'm not a pyrex/Cython expert, but Joris De Ridder wrote: > Pyrex is kind of a dialect, so your extension modules would be nor > python nor C, but a third language. correct. > Is this indeed easier to maintain? yes, because while you can write C extensions in C, you need to use the qui

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Joris De Ridder
On 06 Mar 2008, at 19:15, Fernando Perez wrote: > http://www.cython.org/ > is an evolved version of Pyrex (which is used by numpy and scipy) with > lots of improvements. We'd like to position Cython as the preferred > way of writing most, if not all, new extension code written for numpy > and sc

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Ondrej Certik
On Thu, Mar 6, 2008 at 9:48 PM, Robin <[EMAIL PROTECTED]> wrote: > On Thu, Mar 6, 2008 at 6:15 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > > Any student interested in this should quickly respond on the list; > > such a project would likely be co-mentored by people on the Numpy and > >

Re: [Numpy-discussion] loadtxt and missing values

2008-03-06 Thread Keith Goodman
On Thu, Mar 6, 2008 at 1:12 PM, Sean Arms <[EMAIL PROTECTED]> wrote: > > Keith Goodman wrote: > > On Thu, Mar 6, 2008 at 12:36 PM, <[EMAIL PROTECTED]> wrote: > > > > > >> Proposed solution: > >> - > >> > >> It's probably not the best way (noob, that's me), but thi

Re: [Numpy-discussion] loadtxt and missing values

2008-03-06 Thread Sean Arms
Keith Goodman wrote: > On Thu, Mar 6, 2008 at 12:36 PM, <[EMAIL PROTECTED]> wrote: > > >> Proposed solution: >> - >> >> It's probably not the best way (noob, that's me), but this situation could >> be fixed by: >> >> 1) add a fill keyword to loadtxt such that >> >>

Re: [Numpy-discussion] loadtxt and missing values

2008-03-06 Thread Keith Goodman
On Thu, Mar 6, 2008 at 12:36 PM, <[EMAIL PROTECTED]> wrote: > Proposed solution: > - > > It's probably not the best way (noob, that's me), but this situation could > be fixed by: > > 1) add a fill keyword to loadtxt such that > > def loadtxt(...,fill=-999): > > 2) a

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Robin
On Thu, Mar 6, 2008 at 6:15 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Any student interested in this should quickly respond on the list; > such a project would likely be co-mentored by people on the Numpy and > Cython teams, since it is likely to require expertise from both ends. Hello

[Numpy-discussion] loadtxt and missing values

2008-03-06 Thread caver_sean
Greetings! I'm relatively new to numpy (and python in general), and so far I have been very pleased! I've been writing an atmospheric boundary-layer observation analysis package to use for my PhD research and I have ran into an issue with the loadtxt function (as an aside, our dataloggers outp

Re: [Numpy-discussion] bug in f2py on Mac 10.5 ?

2008-03-06 Thread Robert Kern
On Thu, Mar 6, 2008 at 10:47 AM, Charles Doutriaux <[EMAIL PROTECTED]> wrote: > Hello, > > we're trying to install fortran extension with f2py, works great on > linux, mac 10.4 (gfortran and g77) > but on 10.5, it picks up g77 and then complains about cc_dynamic library. > > Apparently this lib

Re: [Numpy-discussion] Rename record array fields (with object arrays)

2008-03-06 Thread Sameer DCosta
On Sat, Mar 1, 2008 at 10:43 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > > Can you try: > > olddt.names = ['notfoo', 'notbar'] > > on a recent SVN tree. This should now work > Thanks Travis, this works great!! Sameer ___ Numpy-discussion

Re: [Numpy-discussion] calculating weighted majority using two 3D arrays

2008-03-06 Thread Gregory, Matthew
Eads, Damian wrote: > You may need to be a bit more specific by what you mean by > weighted majority. What are the range of values for values > and weights, specifically? This sounds a lot like pixel > classification where each pixel is classified with a majority > vote over its weights and val

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Pierre GM
On Thursday 06 March 2008 13:15:27 Fernando Perez wrote: > - Rewriting the existing ndarray subclasses that ship with numpy, such > as record arrays, in cython. In doing this, benchmarks of the > relative performance of the new code should be obtained. Fernando, I remember having huge difficu

Re: [Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Christopher Barker
Fernando Perez wrote: > after the Scipy/Sage Days 8 meeting, we were all very impressed by the > progress made by Cython. cool stuff! > A specific project along these lines, that would be very beneficial > for numpy could be: Is there any way to set this up as a possible Google Summer of Co

[Numpy-discussion] Numpy/Cython Google Summer of Code project idea

2008-03-06 Thread Fernando Perez
Hi all, after the Scipy/Sage Days 8 meeting, we were all very impressed by the progress made by Cython. For those not familiar with it, Cython: http://www.cython.org/ is an evolved version of Pyrex (which is used by numpy and scipy) with lots of improvements. We'd like to position Cython

[Numpy-discussion] bug in f2py on Mac 10.5 ?

2008-03-06 Thread Charles Doutriaux
Hello, we're trying to install fortran extension with f2py, works great on linux, mac 10.4 (gfortran and g77) but on 10.5, it picks up g77 and then complains about cc_dynamic library. Apparently this lib is not part os 10.5 (Xcode), is that a known problem? Should we try with what's in trunk?

Re: [Numpy-discussion] confusion about eigenvector

2008-03-06 Thread [EMAIL PROTECTED]
ok..I coded everything again from scratch..looks like i was having a problem with matrix class when i used a matrix for facespace facespace=sortedeigenvectorsmatrix * adjustedfacematrix and trying to convert the row to an image (eigenface). by make_simple_image(facespace[x],"eigenimage_x.jpg",(im

Re: [Numpy-discussion] numpy.ndarray constructor from python list: bug?

2008-03-06 Thread Robin
On Thu, Mar 6, 2008 at 9:53 AM, Emanuele Olivetti <[EMAIL PROTECTED]> wrote: > Dear all, > > Look at this little example: > > import numpy > a = numpy.array([1]) > b = numpy.array([1,2,a]) > c = numpy.array([a,1,2]) > > Which has the following output: > > Traceback (most re

[Numpy-discussion] numpy.ndarray constructor from python list: bug?

2008-03-06 Thread Emanuele Olivetti
Dear all, Look at this little example: import numpy a = numpy.array([1]) b = numpy.array([1,2,a]) c = numpy.array([a,1,2]) Which has the following output: Traceback (most recent call last): File "b.py", line 4, in c = numpy.array([a,1,2]) ValueError: setting an array element