Hi Thomas,

On Tue, 09 Mar 2010 10:29:17 +0100 Thomas Holder
<spel...@users.sourceforge.net> wrote:

> Hi Simon and Robert,
> 
> > It sounds like the file as it is read by the script is completely on one
> > line. I wonder if this is the old UNIX vs MSDOS line ending problem.
> 
> yes, sounds like a linefeed problem. But actually python has universal
> newline support. I made some changes to the script (quite a lot
> changes, sorry ;-)) and now can read any of mac/unix/dos text files
> using MacPyMol.

I wasn't convinced that the linefeed was the problem, but it was the only
thing I could think of and was prompted from a recent teaching experience in
which a group of students using Windows were having some problems with
scripts that they wrote in Wordpad or Notepad. 

Thanks for sending along your version of this script. I've learned something
from it!  I didn't know about the dictionary .setdefault function -- that
looks very useful, although a little harder (at least for me) to comprehend
for the dictionary of dictionaries in this script.  It certainly makes the
code look cleaner.

Cheers,
Rob

-- 
Robert L. Campbell, Ph.D.
Senior Research Associate/Adjunct Assistant Professor 
Botterell Hall Rm 644
Department of Biochemistry, Queen's University, 
Kingston, ON K7L 3N6  Canada
Tel: 613-533-6821            Fax: 613-533-2497
<robert.campb...@queensu.ca>    http://pldserver1.biochem.queensu.ca/~rlc

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to