[Numpy-discussion] adding 'order=' keyword arg to ravel and others

2010-10-26 Thread Mark Wiebe
Because writing "arr.ravel('F')" doesn't seem as descriptive as "arr.ravel(order='F')", I wrote this simple patch. I added mention of the order='A' parameter to a few places it is relevant as well. Here's the branch on github: http://github.com/m-paradox/numpy/compare/master...ravel_keyword_arg

Re: [Numpy-discussion] Stacking a 2d array onto a 3d array

2010-10-26 Thread Dewald Pieterse
I see my slicing was the problem, np.vstack((test[:1], test)) works perfectly. On Wed, Oct 27, 2010 at 12:55 AM, wrote: > On Tue, Oct 26, 2010 at 8:15 PM, Dewald Pieterse > wrote: > > Starting with: > > > >> In [93]: test = > >> numpy.array([[[1,1,1],[1,1,1]],[[2,2,2],[2,2,2]],[[3,3,3],[3,3,3]]

Re: [Numpy-discussion] Stacking a 2d array onto a 3d array

2010-10-26 Thread josef . pktd
On Tue, Oct 26, 2010 at 8:15 PM, Dewald Pieterse wrote: > Starting with: > >> In [93]: test = >> numpy.array([[[1,1,1],[1,1,1]],[[2,2,2],[2,2,2]],[[3,3,3],[3,3,3]]]) >> >> In [94]: test >> Out[94]: >> array([[[1, 1, 1], >>     [1, 1, 1]], >> >>    [[2, 2, 2], >>     [2, 2, 2]], >> >>  

[Numpy-discussion] Stacking a 2d array onto a 3d array

2010-10-26 Thread Dewald Pieterse
Starting with: In [93]: test = > numpy.array([[[1,1,1],[1,1,1]],[[2,2,2],[2,2,2]],[[3,3,3],[3,3,3]]]) > > In [94]: test > Out[94]: > array([[[1, 1, 1], > [1, 1, 1]], > >[[2, 2, 2], > [2, 2, 2]], > >[[3, 3, 3], > [3, 3, 3]]]) > > Slicing the complete first ro

Re: [Numpy-discussion] problems with numdifftools

2010-10-26 Thread Pauli Virtanen
Tue, 26 Oct 2010 14:24:39 -0700, Nicolai Heitz wrote: > > http://mail.scipy.org/mailman/listinfo/scipy-user > > I contacted them already but they didn't responded so far and I was > forwarded to that list which was supposed to be more appropriated. I think you are thinking here about some other l

Re: [Numpy-discussion] problems with numdifftools

2010-10-26 Thread Nicolai Heitz
Am 26.10.2010 12:38, schrieb josef.p...@gmail.com: > On Tue, Oct 26, 2010 at 3:28 PM, Pauli Virtanen wrote: >> Tue, 26 Oct 2010 12:16:53 -0700, Nicolai Heitz wrote: >>> I am not sure if you are the right persons to contact but if not I would >>> appreciate a short notice and maybe an address

Re: [Numpy-discussion] problems with numdifftools

2010-10-26 Thread josef . pktd
On Tue, Oct 26, 2010 at 3:28 PM, Pauli Virtanen wrote: > Tue, 26 Oct 2010 12:16:53 -0700, Nicolai Heitz wrote: >> I am not sure if you are the right persons to contact but if not I would >> appreciate a short notice and maybe an address where I can find help. I >> already posted this this message

Re: [Numpy-discussion] problems with numdifftools

2010-10-26 Thread Pauli Virtanen
Tue, 26 Oct 2010 12:16:53 -0700, Nicolai Heitz wrote: > I am not sure if you are the right persons to contact but if not I would > appreciate a short notice and maybe an address where I can find help. I > already posted this this message in an other python mailing list and > they forwarded me to th

[Numpy-discussion] problems with numdifftools

2010-10-26 Thread Nicolai Heitz
Hey, I am not sure if you are the right persons to contact but if not I would appreciate a short notice and maybe an address where I can find help. I already posted this this message in an other python mailing list and they forwarded me to this list and told me that I might find help here. I a

Re: [Numpy-discussion] loading and filtering data for matplotlib

2010-10-26 Thread Resmi
> > the vectorized version that should work (minus typos, just written not > tested) filt = data['filt'] mask = filt=='SU' x1=data['x1'][mask] SUx2 = data['x2'][mask] no loop necessary. T hanks Josef. It works as it is. Resmi ___ NumPy-Discussio

Re: [Numpy-discussion] ANN: NumPy 1.5.1 release candidate 1

2010-10-26 Thread Friedrich Romstedt
I found some issues on Mac OS X 10.5 ppc in py2.5.4: See here: http://github.com/friedrichromstedt/numpy/tree/release%2F1.5.1rc1%2Fpy2.5-python.org-macosx10.3/release/logs/osx105rh/ I tested also on 10.6 intel and 10.5 intel, there are no Fs. The Python was freshly installed, only nose & the nu

Re: [Numpy-discussion] portable doctests despite floating points numbers

2010-10-26 Thread Fabrice Silva
Another solution http://code.activestate.com/recipes/577124-approximately-equal/ -- Fabrice Silva ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] loading and filtering data for matplotlib

2010-10-26 Thread josef . pktd
On Tue, Oct 26, 2010 at 10:57 AM, Resmi wrote: > Hi >  I'm new to python. I'm trying to plot a data set in matplotlib. > >  The data is a mixture of strings and floats, has four columns > (col[0],col[1],col[2],col[3]) and it looks like: > > R       -2.29350   0.50340   0.480E-01 > R       -2.25903

[Numpy-discussion] loading and filtering data for matplotlib

2010-10-26 Thread Resmi
Hi I'm new to python. I'm trying to plot a data set in matplotlib. The data is a mixture of strings and floats, has four columns (col[0],col[1],col[2],col[3]) and it looks like: R -2.29350 0.50340 0.480E-01 R -2.25903 0.50740 0.480E-01 SU -2.19457 0.16200 0.800E-01

Re: [Numpy-discussion] ANN: NumPy 1.5.1 release candidate 1

2010-10-26 Thread René Dudfield
Hi, Yeah, that's what I meant. Upgrading numpy over an old install via distutils breaks it. cheers, On Tue, Oct 26, 2010 at 1:54 AM, David wrote: > On 10/26/2010 08:47 AM, Ralf Gommers wrote: > > On Tue, Oct 26, 2010 at 12:35 AM, René Dudfield > wrote: > >> hi, > >> > >> this is another in