[Chimera-users] python printing in x3d2collada.py
Tom Goddard
goddard at sonic.net
Wed Jun 11 17:18:42 PDT 2014
Hi Matt,
Both your print statements normally go to the Reply Log. If you brought up the Python shell (IDLE window, menu Tools / General Controls / IDLE) before the print happened then the Python shell will show what you printed and not the Reply Log. If neither show what you printed that can be because the print statement happened before the Chimera graphical user interface started in which case the output goes to the terminal where you started Chimera. If you didn’t start it from a terminal but used a double click on an icon then the output is lost (or goes to a console window that is not displayed on some operating systems). If the Chimera graphical user interface has started and your print output does not appear in Reply Log or the Python shell, then either your print statement was never reached, or this is a Chimera bug. Sometimes when I can’t believe my print statement was not reached I put a line after it that says 1/0 and then look for a traceback.
Tom
On Jun 11, 2014, at 2:03 PM, Dougherty, Matthew T wrote:
> I was delving into the chimera code and wanted to print some variables to better understand how the code works.
>
> When I use a print statement I do not see anything in the reply log or the IDLE window.
>
> here is an example
>
> for filename in args:
> print filename
> print >> sys.stdout, "FN: %s" % filename
>
>
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> ===========================================================================
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
>
More information about the Chimera-users
mailing list