Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-06 Thread Benjamin Root
On Fri, Mar 6, 2015 at 7:59 AM, Charles R Harris wrote: > Datetime64 seems to use the highest precision > > In [12]: result_type(ones(1, dtype='datetime64[D]'), 'datetime64[us]') > Out[12]: dtype(' > In [13]: result_type(ones(1, dtype='datetime64[D]'), 'datetime64[Y]') > Out[13]: dtype(' Ah, ye

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-06 Thread josef.pktd
On Fri, Mar 6, 2015 at 7:59 AM, Charles R Harris wrote: > > > On Thu, Mar 5, 2015 at 10:02 PM, wrote: >> >> On Thu, Mar 5, 2015 at 12:33 PM, Charles R Harris >> wrote: >> > >> > >> > On Thu, Mar 5, 2015 at 10:04 AM, Chris Barker >> > wrote: >> >> >> >> On Thu, Mar 5, 2015 at 8:42 AM, Benjamin R

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-06 Thread Charles R Harris
On Thu, Mar 5, 2015 at 10:02 PM, wrote: > On Thu, Mar 5, 2015 at 12:33 PM, Charles R Harris > wrote: > > > > > > On Thu, Mar 5, 2015 at 10:04 AM, Chris Barker > wrote: > >> > >> On Thu, Mar 5, 2015 at 8:42 AM, Benjamin Root wrote: > >>> > >>> dare I say... datetime64/timedelta64 support? > >>

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread josef.pktd
On Thu, Mar 5, 2015 at 12:33 PM, Charles R Harris wrote: > > > On Thu, Mar 5, 2015 at 10:04 AM, Chris Barker wrote: >> >> On Thu, Mar 5, 2015 at 8:42 AM, Benjamin Root wrote: >>> >>> dare I say... datetime64/timedelta64 support? >> >> >> well, the precision of those is 64 bits, yes? so if you as

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread Charles R Harris
On Thu, Mar 5, 2015 at 10:04 AM, Chris Barker wrote: > On Thu, Mar 5, 2015 at 8:42 AM, Benjamin Root wrote: > >> dare I say... datetime64/timedelta64 support? >> > > well, the precision of those is 64 bits, yes? so if you asked for less > than that, you'd still get a dt64. If you asked for 64 bi

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread Benjamin Root
On Thu, Mar 5, 2015 at 12:04 PM, Chris Barker wrote: > well, the precision of those is 64 bits, yes? so if you asked for less > than that, you'd still get a dt64. If you asked for 64 bits, you'd get it, > if you asked for datetime128 -- what would you get??? > > a 128 bit integer? or an Exceptio

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread Chris Barker
On Thu, Mar 5, 2015 at 8:42 AM, Benjamin Root wrote: > dare I say... datetime64/timedelta64 support? > well, the precision of those is 64 bits, yes? so if you asked for less than that, you'd still get a dt64. If you asked for 64 bits, you'd get it, if you asked for datetime128 -- what would you

Re: [Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread Benjamin Root
dare I say... datetime64/timedelta64 support? ::ducks:: Ben Root On Thu, Mar 5, 2015 at 11:40 AM, Charles R Harris wrote: > Hi All, > > This is apropos gh-5634 , a PR > adding a precision keyword to asarray and asanyarray. The PR description is > > Th

[Numpy-discussion] Adding keyword to asarray and asanyarray.

2015-03-05 Thread Charles R Harris
Hi All, This is apropos gh-5634 , a PR adding a precision keyword to asarray and asanyarray. The PR description is The precision keyword differs from the current dtype keyword in the > following way. > >- It specifies a minimum precision. If the prec