Re: [Numpy-discussion] Would a patch with a function for incrementing an array with advanced indexing be accepted?

2012-07-06 Thread John Salvatier
Okay, done ( https://github.com/jsalvatier/numpy/commit/7d03753e6305dbc878ed7df3e21e9b099eae32ed ). On Tue, Jul 3, 2012 at 11:41 AM, Frédéric Bastien wrote: > Hi, > > Here is code example that work only with different index: > > import numpy > x=numpy.zeros((5,5)) > x[[0,2,4]]+=numpy.random.r

Re: [Numpy-discussion] Numpy Installation Problem on Redhat Linux

2012-07-06 Thread Hung-Hsuan Chen
Thank you. This is very helpful! On Fri, Jul 6, 2012 at 6:23 AM, Aron Ahmadia wrote: > I usually find these problems by searching for "error" in the output, in > your case the complete problem is at the bottom of the log. The relocation > errors you're seeing are happening because the build pro

Re: [Numpy-discussion] Preferring gfortran over g77 on OS X and other distributions?

2012-07-06 Thread Ralf Gommers
On Fri, Jul 6, 2012 at 11:15 AM, Aron Ahmadia wrote: > Aron made this change for {mac, linux, posix, sun, irix, aix} in his PR. I >> think it's a good idea for {mac, linux} and perhaps posix, and to leave the >> other platforms alone. Does anyone else have an opinion on this? >> > > Ralf, that so

Re: [Numpy-discussion] numpy and readline installation fails

2012-07-06 Thread abc def
My apologies for sending the last email out too quickly. I found this page (http://www.scipy.org/Installing_SciPy/Mac_OS_X) and, ignoring the parts about needing 4.0-version compilers (it doesn't work if you use 4.0, but does work for 4.2 (on osx 10.6, with homebrew's python)), it works fine fo

Re: [Numpy-discussion] PyArray_FILLWBYTE dangerous doc

2012-07-06 Thread Frédéric Bastien
Hi, I just did a PR that update the doc to warn about this. https://github.com/numpy/numpy/pull/332 Fred On Thu, Jun 28, 2012 at 10:28 PM, Frédéric Bastien wrote: > Hi, > > The doc of PyArray_FILLWBYTE here > http://docs.scipy.org/doc/numpy/reference/c-api.array.html is this > > > PyArray_FILL

Re: [Numpy-discussion] numpy and readline installation fails

2012-07-06 Thread abc def
Thank you for your advice. I followed the advice about installing python from homebrew. I then ran "brew doctor" and re-arranged the paths as it told me to. It also gives another list of warnings which I'll put at the bottom of this email. My question is now, what is the best way to install num

Re: [Numpy-discussion] "import numpy" performance

2012-07-06 Thread Andrew Dalke
I followed the instructions at http://docs.scipy.org/doc/numpy/dev/gitwash/patching.html and added Ticket #2181 (with patch) at http://projects.scipy.org/numpy/ticket/2181 This remove the 5 'exec' calls from polynomial/*.py and improves the 'import numpy' time by about 25-30%. That is, on my lap

Re: [Numpy-discussion] Numpy test failure - How to fix

2012-07-06 Thread McCully, Dwayne (NIH/NLM/LHC) [C]
Good information to know Aron which I'll pass on to the group. Lets also see what the developers have to say since I'm hoping they watch this distribution list. Dwayne From: Aron Ahmadia [a...@ahmadia.net] Sent: Friday, July 06, 2012 7:36 AM To: Discuss

Re: [Numpy-discussion] Numpy test failure - How to fix

2012-07-06 Thread Aron Ahmadia
Disclosure: I'm not a numpy developer You've certainly got a functional numpy installation if those are the only two tests failing. Those two tests are related to the distance between floating-point numbers using long double precision (128 bits). If you're not using long doubles, then you probab

[Numpy-discussion] Numpy test failure - How to fix

2012-07-06 Thread McCully, Dwayne (NIH/NLM/LHC) [C]
Hope this is the right list to post this problem! I'm getting two errors when running a numpy (see below). Could someone tell me how to fix this or if the errors are not a concern. Dwayne python -c 'import numpy; numpy.test(verbose=2)' Python 2.7.3 Numpy 1.6.2 Nose 1.1.2 PowerPC Red Hat Linux

Re: [Numpy-discussion] Numpy Installation Problem on Redhat Linux

2012-07-06 Thread Aron Ahmadia
I usually find these problems by searching for "error" in the output, in your case the complete problem is at the bottom of the log. The relocation errors you're seeing are happening because the build process is trying to link in Atlas libraries (located here: /home/hxc249/lib/atlas/lib/) that wer

Re: [Numpy-discussion] Numpy Installation Problem on Redhat Linux

2012-07-06 Thread Hung-Hsuan Chen
Link is a great suggestion! I was hesitating about whether or not to paste such a long output. The site.cfg file is shown in the following link. https://gist.github.com/3059209 The output message for $ python setup.py build --fcompiler=gnu95 can be found at the URL. https://gist.github.com/30593

Re: [Numpy-discussion] Numpy Installation Problem on Redhat Linux

2012-07-06 Thread Paul Anton Letnes
> > However, I got the following error message: > error: Command "/usr/bin/g77 -g -Wall -g -Wall -shared > build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/integrate/vodemodule.o > build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o > -L/home/username/lib/ -L/usr/lib

Re: [Numpy-discussion] Preferring gfortran over g77 on OS X and other distributions?

2012-07-06 Thread Aron Ahmadia
> > Aron made this change for {mac, linux, posix, sun, irix, aix} in his PR. I > think it's a good idea for {mac, linux} and perhaps posix, and to leave the > other platforms alone. Does anyone else have an opinion on this? > Ralf, that sounds good to me. If you feel that we should leave sun, iri

Re: [Numpy-discussion] Numpy Installation Problem on Redhat Linux

2012-07-06 Thread Hung-Hsuan Chen
Thank you for pointing this out. Actually I tried both --fcompiler=gnu95 and --fcompiler=gnu flags, but I got the same error message. As for the redhat version, I'm using Red Hat Enterprise Linux Server release 6.3 (Santiago). On Fri, Jul 6, 2012 at 12:42 AM, Paul Anton Letnes wrote: > Hi, > >