Re: [Numpy-discussion] Install error for numpy 1.6

2011-06-13 Thread Scott Sinclair
On 12 June 2011 21:08, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, Jun 12, 2011 at 9:00 PM, Laurent Gautier lgaut...@gmail.com wrote: I did not find the following problem reported. When trying to install Numpy 1.6 with Python 2.7.1+ (r271:86832), gcc 4.5.2, and pip 1.0.1

[Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Ralf Gommers
Hi, I am pleased to announce the availability of the first release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs: #1834 einsum fails for specific shapes #1837 einsum throws nan or freezes python for specific array shapes #1838 object - structured type arrays

Re: [Numpy-discussion] numpy type mismatch

2011-06-13 Thread Olivier Delalleau
2011/6/10 Olivier Delalleau sh...@keba.be 2011/6/10 Charles R Harris charlesr.har...@gmail.com On Fri, Jun 10, 2011 at 3:43 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Jun 10, 2011 at 3:24 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Jun 10, 2011 at 2:17 PM,

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Derek Homeier
Hi Ralf, I am pleased to announce the availability of the first release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs: #1834 einsum fails for specific shapes #1837 einsum throws nan or freezes python for specific array shapes #1838 object - structured type

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Derek Homeier
Hi Ralf, FAIL: Test custom format function for each element in array. -- This test is not in 1.6.x, only in master. I suspect the same is true for the datetime tests, but perhaps not for the S5/U5 thing. Can you clean

Re: [Numpy-discussion] np.histogram: upper range bin

2011-06-13 Thread Christopher Barker
Peter Butterworth wrote: Consistent bin width is important for my applications. With floating point numbers I usually shift my bins by a small offset to ensure values at bin edges always fall in the correct bin. With the current np.histogram behavior you _silently_ get a wrong count in the

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Bruce Southey
On 06/13/2011 10:11 AM, Derek Homeier wrote: Hi Ralf, FAIL: Test custom format function for each element in array. -- This test is not in 1.6.x, only in master. I suspect the same is true for the datetime tests, but

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Ralf Gommers
On Mon, Jun 13, 2011 at 6:08 PM, Bruce Southey bsout...@gmail.com wrote: On 06/13/2011 10:11 AM, Derek Homeier wrote: I used wget using the direct link and it eventually got the complete file after multiple tries. Yes, SF is having a pretty bad day. Anyhow, the tests passed for me on

Re: [Numpy-discussion] fixing up datetime

2011-06-13 Thread alan
I'm joining this late (I've been traveling), but it might be useful to look at the fairly new R module lubridate. They have put quite some thought into simplifying date handling, and when I have used it I have generally been quite pleased. The documentation is quite readable. Just Google it and

Re: [Numpy-discussion] Using multiprocessing (shared memory) with numpy array multiplication

2011-06-13 Thread Christopher Barker
Brandt Belson wrote: Unfortunately I can't flatten the arrays. I'm writing a library where the user supplies an inner product function for two generic objects, and almost always the inner product function does large array multiplications at some point. The library doesn't get to know about

Re: [Numpy-discussion] Using multiprocessing (shared memory) with numpy array multiplication

2011-06-13 Thread srean
Looking at the code the arrays that you are multiplying seem fairly small (300, 200) and you have 50 of them. So it might the case that there is not enough computational work to compensate for the cost of forking new processes and communicating the results. Have you tried larger arrays and more of

Re: [Numpy-discussion] numpy build: automatic fortran detection

2011-06-13 Thread Russell E. Owen
In article banlktikodians0ujrdkpudffo8agpnx...@mail.gmail.com, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Thu, Jun 9, 2011 at 11:46 PM, Russell E. Owen ro...@uw.edu wrote: What would it take to automatically detect which flavor of fortran to use to build numpy on linux? You

Re: [Numpy-discussion] Install error for numpy 1.6

2011-06-13 Thread lgautier
On Jun 13, 1:08 pm, Scott Sinclair scott.sinclair...@gmail.com wrote: On 12 June 2011 21:08, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, Jun 12, 2011 at 9:00 PM, Laurent Gautier lgaut...@gmail.com wrote: I did not find the following problem reported. When trying

[Numpy-discussion] Adjacent matrix

2011-06-13 Thread Thiago Franco Moraes
Hi all, I'm reproducing a algorithm from a paper. This paper takes as input a binary volumetric matrix. In a step from this paper, from this binary volumetric matrix a adjacent matrix is calculated, thisadjacent matrix is calculated as bellow: Find all of the grid points in that lie adjacent to

Re: [Numpy-discussion] Adjacent matrix

2011-06-13 Thread Gael Varoquaux
Hi, You can probably find some inspiration from https://github.com/scikit-learn/scikit-learn/blob/master/scikits/learn/feature_extraction/image.py Gaël ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Bruce Southey
On 06/13/2011 11:19 AM, Ralf Gommers wrote: On Mon, Jun 13, 2011 at 6:08 PM, Bruce Southey bsout...@gmail.com mailto:bsout...@gmail.com wrote: On 06/13/2011 10:11 AM, Derek Homeier wrote: I used wget using the direct link and it eventually got the complete file after multiple

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Derek Homeier
On 13.06.2011, at 6:19PM, Ralf Gommers wrote: I used wget using the direct link and it eventually got the complete file after multiple tries. Yes, SF is having a pretty bad day. I eventually also got the tarball through the fink/debian mirror list; no failures on OS X 10.5 i386. There

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Pauli Virtanen
On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey wrote: [clip] OSError: /usr/local/lib/python3.2/site-packages/numpy/core/multiarray.pyd: cannot open shared object file: No such file or directory I think that's a result of Python 3.2 changing the extension module file naming scheme (IIRC to a

[Numpy-discussion] multiprocessing (shared memory) with numpy array multiplication

2011-06-13 Thread Brandt Belson
Hi all, Thanks for your replies. Brandt Belson wrote: Unfortunately I can't flatten the arrays. I'm writing a library where the user supplies an inner product function for two generic objects, and almost always the inner product function does large array multiplications at some point.

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-13 Thread Bruce Southey
On Mon, Jun 13, 2011 at 8:31 PM, Pauli Virtanen p...@iki.fi wrote: On Mon, 13 Jun 2011 11:08:18 -0500, Bruce Southey wrote: [clip] OSError: /usr/local/lib/python3.2/site-packages/numpy/core/multiarray.pyd: cannot open shared object file: No such file or directory I think that's a result of