Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Alexander Belopolsky
On Thu, Mar 20, 2014 at 7:27 PM, Chris Barker wrote: > On Thu, Mar 20, 2014 at 4:16 AM, Nathaniel Smith wrote: > >> Your NEP suggests making all datetime64s be in UTC, and treating string >> representations from unknown timezones as UTC. How does this differ from, >> and why is it superior to, m

Re: [Numpy-discussion] Numpy Installation Problem Asking

2014-03-20 Thread Chia Jing Yi
Hi, Thanks a lot for your email. I will upload the full traceback soon. Sorry for posting the same thread at scipy-user too. I don't aware about that numpy and scipy user group is linked. I apologize for my mistakes. I will be more careful in future. best regards Edge On Fri, Mar 21, 2014 a

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Alexander Belopolsky
On Thu, Mar 20, 2014 at 9:39 AM, Sankarshan Mudkavi wrote: > A naive datetime64 would be unable to handle this, and would either have > to ignore the tzinfo or would have to throw up an exception. This is not true. Python's own datetime has no problem handling this: >>> t1 = datetime(2000,1,1,

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Alexander Belopolsky
On Thu, Mar 20, 2014 at 7:16 AM, Nathaniel Smith wrote: > Your NEP suggests making all datetime64s be in UTC, and treating string > representations from unknown timezones as UTC. I recall that it was at some point suggested that epoch be part of dtype. I was not able to find the reasons for a

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Andrew Dalke
On Mar 20, 2014, at 10:39 PM, Robert Kern wrote: > Sure, but that discussion will (and should) happen on python-ideas. > When Nathaniel says that "we have been asked" to answer this very > specific question, he means that literally. Ah, now I understand. Thanks! A

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Sankarshan Mudkavi
Hi Chris, > I think there are more or less three options: >1) a) don't have any timezone handling at all -- all datetime64s are UTC. > Always > b) don't have any timezone handling at all -- all datetime64s are > naive > (the only difference between these two is I/O of

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Chris Barker
On Thu, Mar 20, 2014 at 4:16 AM, Nathaniel Smith wrote: > Your NEP suggests making all datetime64s be in UTC, and treating string > representations from unknown timezones as UTC. How does this differ from, > and why is it superior to, making all datetime64s be naive? > > This came up in the conve

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Alexander Belopolsky
On Thu, Mar 20, 2014 at 9:10 AM, Andrew Dalke wrote: > In DSL space, that means @ could be used as the inverse of ** by those > who want to discard any ties to its use in numerics. Considering it > now, I agree this would indeed open up some design space. > > I don't see anything disastrously wron

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Robert Kern
On Thu, Mar 20, 2014 at 8:38 PM, Andrew Dalke wrote: > You say "we've been asked to report back on what design of @ will > be best for the numeric community, since that's where we have special > expertise that python-dev lacks." I don't really think that goal > means you can avoid considering all

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Andrew Dalke
On Mar 20, 2014, at 3:02 PM, Nathaniel Smith wrote: > - And anyway, my impression is that python-dev will give these other > possible uses ~zero weight anyway -- if they thought random DSL > operators were important for their own sake, they would have added @ > long ago :-). Unlike what you all se

[Numpy-discussion] OT: job opening at STScI

2014-03-20 Thread Perry Greenfield
The Science Software Branch at the Space Telescope Science Institute is seeking a developer that enjoys and is good at digging into and understanding the details of Python internals and its libraries--particularly those related to scientific computing--in order to support of our development of s

Re: [Numpy-discussion] Numpy Installation Problem Asking

2014-03-20 Thread Ralf Gommers
On Thu, Mar 20, 2014 at 4:04 PM, Chia Jing Yi wrote: > Hi, > > I plan to plot a sashimi plot to view the alternative splicing event of my > interested "gene" by using MISO. > > After follow the following link, http://genes.mit.edu/burgelab/miso/docs/and > read through the forum. > Unfortunately,

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread josef . pktd
On Thu, Mar 20, 2014 at 1:25 PM, Nathaniel Smith wrote: > On Wed, Mar 19, 2014 at 7:45 PM, Nathaniel Smith wrote: > >> Okay, I wrote a little script [1] to scan Python source files look for >> things like 'dot(a, dot(b, c))' or 'dot(dot(a, b), c)', or the ndarray.dot >> method equivalents. So wh

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Nathaniel Smith
On Thu, Mar 20, 2014 at 1:36 PM, Dag Sverre Seljebotn wrote: > On 03/20/2014 02:26 PM, Dag Sverre Seljebotn wrote: >> Order-of-matrix-multiplication is literally my textbook example of a >> dynamic programming problem with complexity O(n^2) where n is number of >> terms (as in, it's how dynamic pr

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Nathaniel Smith
On Wed, Mar 19, 2014 at 7:45 PM, Nathaniel Smith wrote: > Okay, I wrote a little script [1] to scan Python source files look for > things like 'dot(a, dot(b, c))' or 'dot(dot(a, b), c)', or the ndarray.dot > method equivalents. So what we get out is: > - a count of how many 'dot' calls there are

[Numpy-discussion] Numpy Installation Problem Asking

2014-03-20 Thread Chia Jing Yi
Hi, I plan to plot a sashimi plot to view the alternative splicing event of my interested "gene" by using MISO. After follow the following link, http://genes.mit.edu/burgelab/miso/docs/and read through the forum. Unfortunately, I still face some problems to run the complete set of MISO successful

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Nathaniel Smith
On Thu, Mar 20, 2014 at 9:07 AM, Robert Kern wrote: > I think the operator-overload-as-DSL use cases actually argue somewhat > for right-associativity. There is no lack of left-associative > operators for these use cases to choose from since they usually don't > have numeric or bitwise operations

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Robert Kern
On Thu, Mar 20, 2014 at 1:36 PM, Dag Sverre Seljebotn wrote: > On 03/20/2014 02:26 PM, Dag Sverre Seljebotn wrote: >> I'm positive to the chained @ idea, I think it's the answer to "what we >> really want". > > Sorry, I totally misunderstood this. The question is of course how you > dispatch tech

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Sankarshan Mudkavi
Hi Nathaniel, It differs by allowing time zone info to be preserved if supplied. A naive datetime64 would be unable to handle this, and would either have to ignore the tzinfo or would have to throw up an exception. The current suggestion is very similar to a naive datetime64 and only differs in

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Dag Sverre Seljebotn
On 03/20/2014 02:26 PM, Dag Sverre Seljebotn wrote: > On 03/19/2014 08:45 PM, josef.p...@gmail.com wrote: >> >> >> >> On Wed, Mar 19, 2014 at 2:24 PM, Nathaniel Smith > > wrote: >> >> On Tue, Mar 18, 2014 at 9:14 AM, Robert Kern > > wro

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Robert Kern
On Thu, Mar 20, 2014 at 1:10 PM, Andrew Dalke wrote: > On Mar 20, 2014, at 10:07 AM, Robert Kern wrote: >> I think the operator-overload-as-DSL use cases actually argue somewhat >> for right-associativity. ... Right-associativity adds some diversity >> into the ecosystem and opens up some design s

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Dag Sverre Seljebotn
On 03/19/2014 08:45 PM, josef.p...@gmail.com wrote: > > > > On Wed, Mar 19, 2014 at 2:24 PM, Nathaniel Smith > wrote: > > On Tue, Mar 18, 2014 at 9:14 AM, Robert Kern > wrote: > > On Tue, Mar 18, 2014 at 12:54 AM, Nathaniel Smith

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Andrew Dalke
On Mar 20, 2014, at 10:07 AM, Robert Kern wrote: > I think the operator-overload-as-DSL use cases actually argue somewhat > for right-associativity. ... Right-associativity adds some diversity > into the ecosystem and opens up some design space. You say that like it's a good thing. My argument is

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-03-20 Thread Nathaniel Smith
On 20 Mar 2014 02:07, "Sankarshan Mudkavi" wrote: > I've written a rather rudimentary NEP, (lacking in technical details which I will hopefully add after some further discussion and receiving clarification/help on this thread). > > Please let me know how to proceed and what you think should be add

Re: [Numpy-discussion] [help needed] associativity and precedence of '@'

2014-03-20 Thread Robert Kern
On Thu, Mar 20, 2014 at 4:01 AM, Andrew Dalke wrote: > My preference is for same-left. I rarely work with numpy, and it's more > likely that I'll see '@' used in a non-numpy context. That is, people > in general will see "@" as a sort of free-for-all operator, to use and abuse > as they wish. [1]