<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 5, 2015 at 8:42 AM, Benjamin Root <span dir="ltr"><<a href="mailto:ben.root@ou.edu" target="_blank">ben.root@ou.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>dare I say... datetime64/timedelta64 support?<br></div></div></div></blockquote><div><br></div><div>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???</div><div><br></div><div>a 128 bit integer? or an Exception, because there is no 128bit datetime dtype.</div><div><br></div><div>But I think this is the same problem with any dtype -- if you ask for a precision that doesn't exist, you're going to get an error.</div><div><br></div><div>Is there a more detailed description of the proposed feature anywhere? Do you specify a dtype as a precision? or jsut the precision, and let the dtype figure it out for itself, i.e.:</div><div><br></div><div>precision=64</div><div><br></div><div>would give you a float64 if the passed in array was a float type, but a int64 if the passed in array was an int type, or a uint64 if the passed in array was a unsigned int type, etc.....</div><div><br></div><div>But in the end,  I wonder about the use case. I generaly use asarray one of two ways:</div><div><br></div><div>Without a dtype -- to simple make sure I've got an ndarray of SOME dtype.</div><div><br></div><div>or</div><div><br></div><div>With a dtype - because I really care about the dtype -- usually because I need to pass it on to C code or something.</div><div><br></div><div>I don't think I'd ever need at least some precision, but not care if I got more than that....</div><div><br></div><div>-Chris</div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>