Re: [Numpy-discussion] get information/position of value from matrix

2010-04-08 Thread ioannis syntychakis
thanks for all your answers. Now i can get al the values above the 150, but i would also like to have their positions in de matrix. excample: [[1. 4. 5. 6. 7. 1 2. 5. 7. 8. 9. 3 3. 5. 7. 1. 3. 7]] so, if i now look for values above the 8. the ouput should be; 1 value on position (4,1)

Re: [Numpy-discussion] get information/position of value from matrix

2010-04-08 Thread ioannis syntychakis
anybody knows how you can draw with arrays? i have two arrays, the x and the y coordinates. i do: d.ImageDraw.Draw(im) d.point(E[0],E[1]) im.show() i get this error: only length-1 arrays can be converted to python scalars 2010/4/8 ioannis syntychakis ioanni...@gmail.com thanks for all

[Numpy-discussion] long integers in loadtxt -- bad parsing?

2010-04-08 Thread Andrew Jaffe
Hi all, I am trying to read some 19-digit integers using loadtxt (or genfromtxt -- same problem). The numbers are smaller than the max int64 (and the max uint64 -- same problem with either one). Below, Out[184] shows that python has no problem with the conversion, but loadtxt gets the last

Re: [Numpy-discussion] get information/position of value from matrix

2010-04-08 Thread Michael Gilbert
On Thu, 8 Apr 2010 09:06:16 +0200, ioannis syntychakis wrote: thanks for all your answers. Now i can get al the values above the 150, but i would also like to have their positions in de matrix. excample: [[1. 4. 5. 6. 7. 1 2. 5. 7. 8. 9. 3 3. 5. 7. 1. 3. 7]] so, if i now look for

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-08 Thread Yogesh Tomar
I have confirmed it, It seems like this is a garbage collection issue and very likely a ref count one. How can these kind of things can be fixed? Regards, Yogesh Tomar On Tue, Apr 6, 2010 at 6:12 PM, Yogesh Tomar yto...@gmail.com wrote: I also think the same. There is some problem with my

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-08 Thread Bruce Southey
On 04/08/2010 10:05 AM, Yogesh Tomar wrote: I have confirmed it, It seems like this is a garbage collection issue and very likely a ref count one. How can these kind of things can be fixed? Regards, Yogesh Tomar On Tue, Apr 6, 2010 at 6:12 PM, Yogesh Tomar yto...@gmail.com

Re: [Numpy-discussion] Numpy Segmentation Fault

2010-04-08 Thread Yogesh Tomar
Here it is atlas_threads_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/eqan/tapas/install/atlas/64/lib'] language = f77 blas_opt_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/home/eqan/tapas/install/atlas/64/lib']

Re: [Numpy-discussion] long integers in loadtxt -- bad parsing?

2010-04-08 Thread Andrew Jaffe
Hi, I am trying to read some 19-digit integers using loadtxt (or genfromtxt -- same problem). The numbers are smaller than the max int64 (and the max uint64 -- same problem with either one). Below, Out[184] shows that python has no problem with the conversion, but loadtxt gets the last few

Re: [Numpy-discussion] Interpolation question

2010-04-08 Thread Andrea Gavana
(Resending as numpy-discussion has a 40 Kb message limit) On 30 March 2010 22:44, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/3/30 Andrea Gavana andrea.gav...@gmail.com: However, from the first 100 or so interpolated simulations, I could gather these findings: 1)

[Numpy-discussion] Scipy.org down?

2010-04-08 Thread Fernando Perez
Howdy, [ Robert, sorry to CC you directly, but I'm doing it in case the entire server including mailing lists is fully out and this message doesn't reach anyone via the list. I don't know who the current contact at Enthought for this should be. ] the scipy.org server has been very flaky for the

[Numpy-discussion] Smoothing a Grid

2010-04-08 Thread Ian Mallett
Hi, So I have a 4D grid (x,y,z,vec3), where the vec3 represents a position. What I want to do is to move vec3 elements of the grid based on surrounding vec3 elements so that the grid's values overall are more orthogonal. For example, consider the following 3 x 3 x 3 x vec3 grid: