Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-15 Thread Benjamin Root
On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root ben.r...@ou.edu wrote: On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-15 Thread Benjamin Root
On Wed, Feb 15, 2012 at 8:29 AM, Benjamin Root ben.r...@ou.edu wrote: On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root ben.r...@ou.edu wrote: On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb

[Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Benjamin Root
Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same for python's datetime? Right now, it is very easy for me to make a list comprehension of datetime objects using

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Charles R Harris
On Tue, Feb 14, 2012 at 9:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same for python's datetime? Right now, it

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Mark Wiebe
On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same for python's datetime? Right now, it

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Benjamin Root
On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Mark Wiebe
On Tue, Feb 14, 2012 at 9:37 PM, Benjamin Root ben.r...@ou.edu wrote: On Tuesday, February 14, 2012, Mark Wiebe mwwi...@gmail.com wrote: On Tue, Feb 14, 2012 at 8:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I had. Right now, I can pass a list of python ints or floats into