Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Eric Firing
On 2013/03/04 9:01 PM, Nicolas Rougier wrote: >> >This made me think of a serious performance limitation of structured >> >dtypes: a >> >structured dtype is always "packed", which may lead to terrible byte >> >alignment >> >for common types. For instance, `dtype([('a', 'u1'), ('b', >> >'u8')]).i

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
On Mon, Mar 4, 2013 at 8:37 PM, Charles R Harris wrote: > > There are actually seven versions of polynomial fit, two for the usual > polynomial basis, and one each for Legendre, Chebyshev, Hermite, Hermite_e, > and Laguerre ;) > Correct me if I am wrong, but the fitted function is the same regard

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Nicolas Rougier
> This made me think of a serious performance limitation of structured dtypes: a > structured dtype is always "packed", which may lead to terrible byte alignment > for common types. For instance, `dtype([('a', 'u1'), ('b', > 'u8')]).itemsize == 9`, > meaning that the 8-byte integer is not aligned

Re: [Numpy-discussion] Remove interactive setup

2013-03-04 Thread Bradley M. Froehle
On Mon, Mar 4, 2013 at 10:34 PM, Charles R Harris wrote: > I note that the way to access it is to run python setup.py with no > arguments. I wonder what the proper message should be in that case? > How about usage instructions and an error message, similar to what a basic distutils setup script

Re: [Numpy-discussion] Remove interactive setup

2013-03-04 Thread Charles R Harris
On Mon, Mar 4, 2013 at 10:37 PM, Ralf Gommers wrote: > > > > On Tue, Mar 5, 2013 at 5:12 AM, Aron Ahmadia wrote: > >> I've built numpy on many different machines, including supercomputers, >> and I have never used interactive setup. I agree with the proposal to >> remove it. >> >> A >> >> >> On

Re: [Numpy-discussion] Remove interactive setup

2013-03-04 Thread Ralf Gommers
On Tue, Mar 5, 2013 at 5:12 AM, Aron Ahmadia wrote: > I've built numpy on many different machines, including supercomputers, and > I have never used interactive setup. I agree with the proposal to remove > it. > > A > > > On Mon, Mar 4, 2013 at 11:10 PM, Charles R Harris < > charlesr.har...@gmai

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Kurt Smith
On Mon, Mar 4, 2013 at 4:29 PM, Todd wrote: > > 3. Structured arrays are accessed in a manner similar to python dictionaries, > using a key. However, they don't support the normal python dictionary > methods like keys, values, items, iterkeys, itervalues, iteritems, etc. This > project would be

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Charles R Harris
On Mon, Mar 4, 2013 at 5:23 PM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > A couple of days back, answering a question in StackExchange ( > http://stackoverflow.com/a/15196628/110026), I found myself using > Lagrange multipliers to fit a polynomial with least squares to data, making

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Charles R Harris
On Mon, Mar 4, 2013 at 5:53 PM, Aron Ahmadia wrote: > Interesting, that question would probably have gotten a different response > on scicomp, it is a pity we are not attracting more questions there! > > I know there are two polyfit modules in numpy, one in numpy.polyfit, the > other in numpy.pol

Re: [Numpy-discussion] Remove interactive setup

2013-03-04 Thread Aron Ahmadia
I've built numpy on many different machines, including supercomputers, and I have never used interactive setup. I agree with the proposal to remove it. A On Mon, Mar 4, 2013 at 11:10 PM, Charles R Harris wrote: > In distutils there are three files that provide some interactive setup: > > >

[Numpy-discussion] Remove interactive setup

2013-03-04 Thread Charles R Harris
In distutils there are three files that provide some interactive setup: 1. numpy/distutils/core.py 2. numpy/distutils/fcompiler/gnu.py 3. numpy/distutils/interactive.py In Python3 `raw_input` has been renamed 'input' and python2 'input' is gone. I propose that the easiest solution to th

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
On Mon, Mar 4, 2013 at 4:53 PM, Aron Ahmadia wrote: > Interesting, that question would probably have gotten a different response > on scicomp, it is a pity we are not attracting more questions there! > > I know there are two polyfit modules in numpy, one in numpy.polyfit, the > other in numpy.pol

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Till Stensitzki
Todd gmail.com> writes: > > I have some ideas, but they may not be suitable for GSOC or may just be terrible ideas, so feel free to reject them: > I have also a possible (terrible?) idea in my mind: Including (maybe optional as blas) faster transcendental functions into numpy. Something like ht

Re: [Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Aron Ahmadia
Interesting, that question would probably have gotten a different response on scicomp, it is a pity we are not attracting more questions there! I know there are two polyfit modules in numpy, one in numpy.polyfit, the other in numpy.polynomial, the functionality you are suggesting seems to fit in e

[Numpy-discussion] polyfit with fixed points

2013-03-04 Thread Jaime Fernández del Río
A couple of days back, answering a question in StackExchange ( http://stackoverflow.com/a/15196628/110026), I found myself using Lagrange multipliers to fit a polynomial with least squares to data, making sure it went through some fixed points. This time it was relatively easy, because some 5 years

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Jaime Fernández del Río
On Mon, Mar 4, 2013 at 2:29 PM, Todd wrote: > > 5. Currently dtypes are limited to a set of fixed types, or combinations > of these types. You can't have, say, a 48 bit float or a 1-bit bool. This > project would be to allow users to create entirely new, non-standard dtypes > based on simple ru

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Todd
On Mon, Mar 4, 2013 at 9:41 PM, Ralf Gommers wrote: > > > > On Tue, Feb 26, 2013 at 11:17 AM, Todd wrote: > >> Is numpy planning to participate in GSOC this year, either on their own >> or as a part of another group? >> > > If we participate, it should be under the PSF organization. I suspect >

Re: [Numpy-discussion] GSOC 2013

2013-03-04 Thread Ralf Gommers
On Tue, Feb 26, 2013 at 11:17 AM, Todd wrote: > Is numpy planning to participate in GSOC this year, either on their own or > as a part of another group? > If we participate, it should be under the PSF organization. I suspect participation for NumPy (and SciPy) largely depends on mentors being av

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-03-04 Thread Paul Anton Letnes
On 24. feb. 2013, at 02:20, josef.p...@gmail.com wrote: > On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern wrote: >> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >>> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki wrote: Hello, i know that the array object is already crowded,

Re: [Numpy-discussion] step paramter for linspace

2013-03-04 Thread Chris Barker - NOAA Federal
On Mar 1, 2013, at 8:39 AM, Henry Gomersall wrote: > On Fri, 2013-03-01 at 17:29 > Actually, I buy this could be useful. Yes, it could. How about a "farange", designed for floating point values -- I imagine someone smarter than me about for could write one that would guarantee that end-point w

Re: [Numpy-discussion] reshaping arrays

2013-03-04 Thread Sudheer Joseph
Thanks a lot  Benjamin,   it did the trick. I have another question, I have  ocean section along latitude 0 ( equator) which is sampled at depths. size of the array is 12x14 but this is just the index of the array I need to make a plot which shows depth value as one axis and longitude values as

Re: [Numpy-discussion] reshaping arrays

2013-03-04 Thread Benjamin Root
On Sat, Mar 2, 2013 at 11:35 PM, Sudheer Joseph wrote: > Hi Brad, > I am not getting the attribute reshape for the array, are > you having a different version of numpy than mine? > > I have > In [55]: np.__version__ > Out[55]: '1.7.0' > and detail of the shape > > details of variab

[Numpy-discussion] EuroSciPy 2013 Call for Abstracts

2013-03-04 Thread Tiziano Zito
Dear Scientist using Python, EuroSciPy 2013, the Sixth Annual Conference on Python in Science, takes place in Brussels on 21 - 24 August 2013. The conference features two days of tutorials followed by two days of scientific talks that start with our keynote speakers, Cameron Neylon and Peter Wang.