Re: [Numpy-discussion] Data standardizing

2011-04-13 Thread Wes McKinney
On Wed, Apr 13, 2011 at 9:50 AM, Jonathan Rocher wrote: > Hi, > > I assume you have this data in a txt file, correct? You can load up all of > it in a numpy array using > import numpy as np > data = np.loadtxt("climat_file.txt", skiprows = 1) > > Then you can compute the mean you want by taking it

Re: [Numpy-discussion] Odd numerical difference between Numpy 1.5.1 and Numpy > 1.5.1

2011-04-13 Thread Mark Wiebe
On Wed, Apr 13, 2011 at 3:34 PM, Mark Wiebe wrote: > On Tue, Apr 12, 2011 at 11:51 AM, Mark Wiebe wrote: > >> >> > here's the rule for a set of arbitrary arrays (not necessarily just 2): >> >> - if all the arrays are scalars, do type promotion on the types as is >> - otherwise, do type promoti

Re: [Numpy-discussion] Odd numerical difference between Numpy 1.5.1 and Numpy > 1.5.1

2011-04-13 Thread Mark Wiebe
On Tue, Apr 12, 2011 at 11:51 AM, Mark Wiebe wrote: > > here's the rule for a set of arbitrary arrays (not necessarily just 2): > > - if all the arrays are scalars, do type promotion on the types as is > - otherwise, do type promotion on min_scalar_type(a) of each array a > > The function min_sc

Re: [Numpy-discussion] problem installing numpy on Fedora

2011-04-13 Thread Sergio Pascual
You should check if you have two different compilers installed ls /usr/bin/gcc* ? 2011/4/13 c cook : > I have Fedora Core 3 and x86_64 architecture. But I don't understand why it > appears to look for /usr/lib/gcc/x86_64-redhat-linux/3.4.4/ > instead of /usr/bin/gcc > Csaba > > On Wed, Apr 13, 20

Re: [Numpy-discussion] problem installing numpy on Fedora

2011-04-13 Thread c cook
I have Fedora Core 3 and x86_64 architecture. But I don't understand why it appears to look for /usr/lib/gcc/x86_64-redhat-linux/3.4.4/ instead of /usr/bin/gcc Csaba On Wed, Apr 13, 2011 at 10:17 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > On Wed, Apr 13, 2011 at 7:30 AM, c c

Re: [Numpy-discussion] problem installing numpy on Fedora

2011-04-13 Thread Charles R Harris
On Wed, Apr 13, 2011 at 7:30 AM, c cook wrote: > Hello, > > I am trying to install numpy 1.6.0b2 version on Fedora and I am getting the > following error: > > In file included from numpy/core/src/private/npy_config.h:4, > from numpy/core/src/multiarray/common.c:8, >

Re: [Numpy-discussion] problem installing numpy on Fedora

2011-04-13 Thread Bruce Southey
On 04/13/2011 08:30 AM, c cook wrote: Hello, I am trying to install numpy 1.6.0b2 version on Fedora and I am getting the following error: In file included from numpy/core/src/private/npy_config.h:4, from numpy/core/src/multiarray/common.c:8, from numpy/core/

Re: [Numpy-discussion] segfault on complex array on solaris x86

2011-04-13 Thread John Hunter
On Sat, Jan 15, 2011 at 7:28 AM, Ralf Gommers wrote: > I've opened http://projects.scipy.org/numpy/ticket/1713 so this doesn't get > lost. Just wanted to bump this -- bug still exists in numpy HEAD 2.0.0.dev-fe3852f ___ NumPy-Discussion mailing list Num

Re: [Numpy-discussion] Data standardizing

2011-04-13 Thread Jonathan Rocher
Hi, I assume you have this data in a txt file, correct? You can load up all of it in a numpy array using import numpy as np data = np.loadtxt("climat_file.txt", skiprows = 1) Then you can compute the mean you want by taking it on a slice of the data array. For example, if you want to compute the

[Numpy-discussion] problem installing numpy on Fedora

2011-04-13 Thread c cook
Hello, I am trying to install numpy 1.6.0b2 version on Fedora and I am getting the following error: In file included from numpy/core/src/private/npy_config.h:4, from numpy/core/src/multiarray/common.c:8, from numpy/core/src/multiarray/multiarraymodule_onefile.c:8