Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread Eelco Hoogendoorn
n 22/05/2014 00:37, numpy-discussion-requ...@scipy.org wrote: > > Message: 4 Date: Wed, 21 May 2014 18:32:30 -0400 From: Warren > > Weckesser Subject: Re: [Numpy-discussion] > > Easter Egg or what I am missing here? To: Discussion of Numerical > > Python Message-ID: > >

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread Siegfried Gonzi
On 22/05/2014 00:37, numpy-discussion-requ...@scipy.org wrote: > Message: 4 Date: Wed, 21 May 2014 18:32:30 -0400 From: Warren > Weckesser Subject: Re: [Numpy-discussion] > Easter Egg or what I am missing here? To: Discussion of Numerical > Python Message-ID: > > Conten

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread Warren Weckesser
On 5/21/14, Siegfried Gonzi wrote: > Please would anyone tell me the following is an undocumented bug > otherwise I will lose faith in everything: > > == > import numpy as np > > > years = [2004,2005,2006,2007] > > dates = [20040501,20050601,20060801,20071001] > > for x in years: > > print 'y

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread Chris Barker
On Wed, May 21, 2014 at 12:38 PM, alex wrote: > > years = [2004,2005,2006,2007] > > > > dates = [20040501,20050601,20060801,20071001] > > > > for x in years: > > > > print 'year ',x > > > > xy = np.array([x*1.0e-4 for x in dates]).astype(np.int) > > > > print 'year ',x > did you

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread alex
On Wed, May 21, 2014 at 3:29 PM, Siegfried Gonzi wrote: > Please would anyone tell me the following is an undocumented bug > otherwise I will lose faith in everything: > > == > import numpy as np > > > years = [2004,2005,2006,2007] > > dates = [20040501,20050601,20060801,20071001] > > for x in yea

[Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread Siegfried Gonzi
Please would anyone tell me the following is an undocumented bug otherwise I will lose faith in everything: == import numpy as np years = [2004,2005,2006,2007] dates = [20040501,20050601,20060801,20071001] for x in years: print 'year ',x xy = np.array([x*1.0e-4 for x in dates]).a