Re: [Numpy-discussion] unique 2d arrays

2010-09-21 Thread Peter Schmidtke
426 193] >> [431 129]] >> >> >> How can I do this without workarounds like string concatenation or such >> things? Numpy.unique flattens the whole array so it's not really of use >> here. >> > > One possibility see threa

[Numpy-discussion] unique 2d arrays

2010-09-20 Thread Peter Schmidtke
;d like to get this : [[409 152] [426 193] [431 129]] How can I do this without workarounds like string concatenation or such things? Numpy.unique flattens the whole array so it's not really of use here. Cheers. -- Peter Schmidtke PhD Student Dept. Physical Chemistry Faculty of Pharmac

Re: [Numpy-discussion] module compiled against ABI version 2000000 but this version of numpy is 1000009

2010-07-29 Thread Peter Schmidtke
On 29/07/2010, at 19:01, Pauli Virtanen wrote: > Thu, 29 Jul 2010 18:45:38 +0200, Peter Schmidtke wrote: >> I am trying to install manually the latest releases of scipy and numpy >> on Mac OSX 10.6 Snow Leopard. I previously used the dmg installer that >> is available, but

[Numpy-discussion] module compiled against ABI version 2000000 but this version of numpy is 1000009

2010-07-29 Thread Peter Schmidtke
should I use? I already use the newest release and I cannot go for the svn version as pycuda won't work as it should anymore. Thanks in advance for your lights on this. Peter Schmidtke - PhD Student Department of Physical Chemistry School of Pharmacy University of Barc

[Numpy-discussion] 3d plane to point cloud fitting using SVD

2010-05-05 Thread Peter Schmidtke
get the a,b and c coefficients? Thanks in advance. -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona ___ NumPy-Discussion

Re: [Numpy-discussion] finding close together points.

2009-11-10 Thread Peter Schmidtke
they were different trees. > > This is slow, takes a bunch of memory, and I then have to parse out the > list to find the ones that are paired up. > > Is there a way to get just the close ones from the single tree? > > thanks, > > -Chris -- Peter Schmidtke -

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
5.5, 6.1, 3. , 5.5, 2. , 6.5]) You can reshape this array to a 3x3 matrix using the reshape function -> x.reshape((3,3)) -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physi

[Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
Have you tried the numpy.fromfile function? This usually worked great for my files that had the same format than yours. ++ Peter -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona

[Numpy-discussion] reading gzip compressed files using numpy.fromfile

2009-10-29 Thread Peter Schmidtke
> Date: Wed, 28 Oct 2009 20:31:43 +0100 > From: Peter Schmidtke > Subject: [Numpy-discussion] reading gzip compressed files using > numpy.fromfile > To: numpy-discussion@scipy.org > Message-ID: > Content-Type: text/plain; charset="UTF-8" > > Dear Nump

[Numpy-discussion] reading gzip compressed files using numpy.fromfile

2009-10-28 Thread Peter Schmidtke
les are rather big, so I simply have to avoid this. Thanks in advance. -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona