[Tutor] ipython trouble with editor

2012-02-13 Thread David Craig
Hi, I use emacs with ipython (or I would like to) on a GNU/linux machine. To be able to use it from the ipython shell through %ed I added the following lines to my .bashrc file, export LESS="-R" export EDITOR=emacs this seemed to work as when I try %ed filename it opens and is editable in th

[Tutor] What's the difference between Queue(in module Queue) and list(build_in class)?

2012-02-13 Thread daedae11
What's the difference between Queue(in module Queue) and list(build_in class)? I think that when I pass a same queue object to two different threads, the change in each thread will affect each other as same as Queue. So why don't we use list or other variable object? daedae11

Re: [Tutor] What's the difference between Queue(in module Queue) and list(build_in class)?

2012-02-13 Thread Steven D'Aprano
daedae11 wrote: What's the difference between Queue(in module Queue) and list(build_in class)? I think that when I pass a same queue object to two different threads, the change in each thread will affect each other as same as Queue. So why don't we use list or other variable object? Have you r

Re: [Tutor] ipython trouble with editor

2012-02-13 Thread Steven D'Aprano
David Craig wrote: Hi, I use emacs with ipython (or I would like to) on a GNU/linux machine. To be able to use it from the ipython shell through %ed I added the following lines to my .bashrc file, export LESS="-R" export EDITOR=emacs this seemed to work as when I try %ed filename it opens an

Re: [Tutor] ipython trouble with editor

2012-02-13 Thread Mark Lawrence
On 13/02/2012 16:07, Steven D'Aprano wrote: [snipped] You might be better off asking your question on a dedicated ipython support forum. Like http://news.gmane.org/gmane.comp.python.ipython.user -- Cheers. Mark Lawrence. ___ Tutor maillist - Tu

Re: [Tutor] Cmd Advice

2012-02-13 Thread Dave Hanson
On Sat, Feb 11, 2012 at 2:03 PM, Walter Prins wrote: > Hi all, > > Below is an *earlier* (note the date) private response by myself that > at the time accidentally didn't get sent to the list and only to Dave > (as he privately replied to me only and not to the list.) Given that > the thread on t

Re: [Tutor] Cmd Advice

2012-02-13 Thread Alan Gauld
On 13/02/12 17:00, Dave Hanson wrote: [For future reference - should I have snipped the previous message out of this email or trimmed it down a bit? Always snip out as much as possible that is not needed for context. Anything irrelevant just adds to the confusion and the byte count. -- Alan G

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Alan Gauld
On 13/02/12 23:50, Elaina Ann Hyde wrote: Hi, I'm working on a routine for reading in the Schlegel dustmaps. I have an ascii table with values, Ra-Dec and I'm trying to convert 2 columns to l,b and get the dust values out, this is a 2 part problem as I need to first convert to l,b, keep those va

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Elaina Ann Hyde
On Tue, Feb 14, 2012 at 11:52 AM, Alan Gauld wrote: > On 13/02/12 23:50, Elaina Ann Hyde wrote: > >> Hi, I'm working on a routine for reading in the Schlegel dustmaps. I >> have an ascii table with values, Ra-Dec and I'm trying to convert 2 >> columns to l,b and get the dust values out, this is a

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Martin A. Brown
Greetings Elaina, I will echo Alan's remarks--it sounds like you are using a quite specialized (specialised?) module. It is certainly not a module with which I am familiar, not in the standard library, and not a commonly encountered problem. I would classify this module as domain-specific.

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Andre' Walker-Loud
Hi Elaina, just reading your question (and responses). There is an issue with what you wrote in the email, which may help. > for row in dat: > > gcoords=ICRSCoordinates(dat['ra-drad'],dat['dec-drad'],radians=True).convert(GalacticCoordinates) This line is identical to the one that broke

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Mark Lawrence
On 13/02/2012 23:50, Elaina Ann Hyde wrote: Hi, I'm working on a routine for reading in the Schlegel dustmaps. I have an ascii table with values, Ra-Dec and I'm trying to convert 2 columns to l,b and get the dust values out, this is a 2 part problem as I need to first convert to l,b, keep those

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Elaina Ann Hyde
On Tue, Feb 14, 2012 at 1:38 PM, Andre' Walker-Loud wrote: > Hi Elaina, > > just reading your question (and responses). There is an issue with what > you wrote in the email, which may help. > > > for row in dat: > > > > gcoords=ICRSCoordinates(dat['ra-drad'],dat['dec-drad'],radians=True).conver