[Numpy-discussion] sampling arrays

2013-06-15 Thread Sudheer Joseph
Dear experts,    Is it possible to sample a 4D array of numpy at given dimensions with out writing loops? ie a smart python way? for example, I have a  data cube with cube=c(x,y,z,t) dimensions which are essentially latitude longitude depth and time. Is it possible to sample this ar

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Julian Taylor
On 15.06.2013 22:26, Charles R Harris wrote: > > > On Sat, Jun 15, 2013 at 2:23 PM, Warren Weckesser > mailto:warren.weckes...@gmail.com>> wrote: > > > Also on 2.7. The -O3 flag seems to cause the problem. > > Chuck > I was wrong when I changed this flag. The compiler is allowed to assume th

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Julian Taylor
On 15.06.2013 22:33, Charles R Harris wrote: > > > On Sat, Jun 15, 2013 at 2:26 PM, Charles R Harris > mailto:charlesr.har...@gmail.com>> wrote: > > > > On Sat, Jun 15, 2013 at 2:23 PM, Warren Weckesser > mailto:warren.weckes...@gmail.com>> wrote: > > > On Sat, Jun 15, 2013 a

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 2:26 PM, Charles R Harris wrote: > > > On Sat, Jun 15, 2013 at 2:23 PM, Warren Weckesser < > warren.weckes...@gmail.com> wrote: > >> >> On Sat, Jun 15, 2013 at 4:03 PM, Julian Taylor < >> jtaylor.deb...@googlemail.com> wrote: >> >>> On 15.06.2013 21:57, Warren Weckesser wr

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 2:23 PM, Warren Weckesser < warren.weckes...@gmail.com> wrote: > > On Sat, Jun 15, 2013 at 4:03 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 15.06.2013 21:57, Warren Weckesser wrote: >> > >> > On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor >> >> >

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
On Sat, Jun 15, 2013 at 4:03 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 15.06.2013 21:57, Warren Weckesser wrote: > > > > On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor > > > @warren, can you please bisect the commit causing this? > > > > > > > > Here's the culprit: > > > >

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 2:03 PM, Warren Weckesser < warren.weckes...@gmail.com> wrote: > > On Sat, Jun 15, 2013 at 3:57 PM, Warren Weckesser < > warren.weckes...@gmail.com> wrote: > >> >> On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor < >> jtaylor.deb...@googlemail.com> wrote: >> >>> On 15.06.2013

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
On Sat, Jun 15, 2013 at 3:57 PM, Warren Weckesser < warren.weckes...@gmail.com> wrote: > > On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 15.06.2013 21:12, Charles R Harris wrote: >> > >> > >> > On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser >>

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Julian Taylor
On 15.06.2013 21:57, Warren Weckesser wrote: > > On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor > @warren, can you please bisect the commit causing this? > > > > Here's the culprit: > > aef286debfd11a62f1c337dea55624cee7fd4d9e is the first bad commit > commit aef286debfd11a62f1c337dea5562

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
On Sat, Jun 15, 2013 at 3:15 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 15.06.2013 21:12, Charles R Harris wrote: > > > > > > On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser > > mailto:warren.weckes...@gmail.com>> wrote: > > > > > > On Sat, Jun 15, 2013 at 11:43 AM, Warre

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
On Sat, Jun 15, 2013 at 3:26 PM, Charles R Harris wrote: > > > On Sat, Jun 15, 2013 at 1:15 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 15.06.2013 21:12, Charles R Harris wrote: >> > >> > >> > On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser >> > mailto:warren.weckes...@g

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 1:15 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 15.06.2013 21:12, Charles R Harris wrote: > > > > > > On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser > > mailto:warren.weckes...@gmail.com>> wrote: > > > > > > On Sat, Jun 15, 2013 at 11:43 AM, Warre

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Julian Taylor
On 15.06.2013 21:12, Charles R Harris wrote: > > > On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser > mailto:warren.weckes...@gmail.com>> wrote: > > > On Sat, Jun 15, 2013 at 11:43 AM, Warren Weckesser > mailto:warren.weckes...@gmail.com>> wrote: > > I'm getting a seg. fault i

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 9:50 AM, Warren Weckesser < warren.weckes...@gmail.com> wrote: > > On Sat, Jun 15, 2013 at 11:43 AM, Warren Weckesser < > warren.weckes...@gmail.com> wrote: > >> I'm getting a seg. fault in master when I run the tests. I'm on Ubuntu >> 12.04 64 bit, with Python 3.3.2 (64 b

Re: [Numpy-discussion] time to revisit NA/ma ideas

2013-06-15 Thread Pierre GM
On Jun 15, 2013, at 20:38 , Benjamin Root wrote: > > On Fri, Jun 14, 2013 at 6:38 PM, Eric Firing wrote: > A nice summary of the discussions from a year ago is here: > > http://www.numpy.org/NA-overview.html > > It provides food for thought. > > Eric > > Perhaps a BoF session should be put

Re: [Numpy-discussion] time to revisit NA/ma ideas

2013-06-15 Thread Benjamin Root
On Fri, Jun 14, 2013 at 6:38 PM, Eric Firing wrote: > A nice summary of the discussions from a year ago is here: > > http://www.numpy.org/NA-overview.html > > It provides food for thought. > > Eric > Perhaps a BoF session should be put together for SciPy 2013, and possibly even have a google han

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Eric Firing
On 2013/06/15 6:06 AM, Pierre GM wrote: > > On Jun 15, 2013, at 17:35 , Matthew Brett wrote: > >> Hi, >> >> On Sat, Jun 15, 2013 at 2:51 PM, Sudheer Joseph >> wrote: >>> >>> Thank you very much for this tip. >>> Is there a typical way to save masked and the rest separately?. Not much >>> familia

Re: [Numpy-discussion] Dropping support for, Accelerate/veclib?

2013-06-15 Thread Pauli Virtanen
FYI: https://github.com/numpy/numpy/pull/3439 -- Pauli Virtanen ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Sudheer Joseph
Thanks a lot,   Both suggestions helped me and I could save it as below. np.savez('eof_output',eof=eof1.data,pcs=pc1,lags=lags,lons=lons,lats=lats,x=x,y=y,clevs=clevs,eof_mask=eof1.mask) *** Sudheer Joseph Indian National Ce

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Pierre GM
On Jun 15, 2013, at 17:35 , Matthew Brett wrote: > Hi, > > On Sat, Jun 15, 2013 at 2:51 PM, Sudheer Joseph > wrote: >> >> Thank you very much for this tip. >> Is there a typical way to save masked and the rest separately?. Not much >> familiar with array handling in numpy. > > I don't use m

Re: [Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
On Sat, Jun 15, 2013 at 11:43 AM, Warren Weckesser < warren.weckes...@gmail.com> wrote: > I'm getting a seg. fault in master when I run the tests. I'm on Ubuntu > 12.04 64 bit, with Python 3.3.2 (64 bits): > > $ python3 -c "import numpy as np; np.test('full')" > Running unit tests for numpy > Num

[Numpy-discussion] Seg. fault when running tests

2013-06-15 Thread Warren Weckesser
I'm getting a seg. fault in master when I run the tests. I'm on Ubuntu 12.04 64 bit, with Python 3.3.2 (64 bits): $ python3 -c "import numpy as np; np.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-fa5bc1c NumPy is installed in /home/warren/local_py332/lib/python3.3/site-packa

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Matthew Brett
Hi, On Sat, Jun 15, 2013 at 2:51 PM, Sudheer Joseph wrote: > > Thank you very much for this tip. > Is there a typical way to save masked and the rest separately?. Not much > familiar with array handling in numpy. I don't use masked array myself, but it looks like it would be something like: eo

[Numpy-discussion] new OpenOpt Suite release 0.50

2013-06-15 Thread Dmitrey
Hi all, > I'm glad to inform you about new OpenOpt Suite release 0.50 (2013-June-15): > > * interalg (solver with specifiable accuracy) now works many times (sometimes orders) faster on (possibly multidimensional) integration problems (IP) and on some optimization problems * Add modeling d

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Sudheer Joseph
Thank you very much for this tip. Is there a typical way to save masked and the rest separately?. Not much familiar with array handling in numpy. Sudheer ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinf

Re: [Numpy-discussion] Not checking github

2013-06-15 Thread Charles R Harris
On Sat, Jun 15, 2013 at 4:00 AM, Sebastian Berg wrote: > Just to note, I disabled most github notifications for time reasons for > the next months, so if something pops up that you think I should look > at, use @mention. > OK. Thanks for the work you have done. We'll look for your return. Chuck

Re: [Numpy-discussion] saving 3d array

2013-06-15 Thread Matthew Brett
Hi, On Sat, Jun 15, 2013 at 1:22 PM, Sudheer Joseph wrote: > Dear Experts, > I was trying to save results of eof analysis to an npz > file and see that it is not possible to save a 3d array as npz file variable. > Is this true even today or are there developments which make

[Numpy-discussion] saving 3d array

2013-06-15 Thread Sudheer Joseph
Dear Experts,     I was trying to save results of eof analysis to an npz file and see that it is not possible to save a 3d array as npz file variable. Is this true even today or are there developments which make this possible?  I am able to save all other variables except the 3d

[Numpy-discussion] Reading data from structured text

2013-06-15 Thread klo uo
Hi, I have data reports in text files, where first 5 lines describe the data following, which is actually continuous time series of 2048 values wrapped in 205 rows and 10 columns, and each file has 12 such sets. If I crop to first dataset and leave the headers (first 5 lines), genfromtxt(skip_hea

[Numpy-discussion] Not checking github

2013-06-15 Thread Sebastian Berg
Just to note, I disabled most github notifications for time reasons for the next months, so if something pops up that you think I should look at, use @mention. - Sebastian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.or