mailr9156 - /branches/frame_order/generic_fns/pymol.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 25, 2009 - 16:26:
Author: bugman
Date: Thu Jun 25 16:26:11 2009
New Revision: 9156

URL: http://svn.gna.org/viewcvs/relax?rev=9156&view=rev
Log:
Bug fix for the pymol.cartoon() user function.

This was failing when multiple proteins were loaded.


Modified:
    branches/frame_order/generic_fns/pymol.py

Modified: branches/frame_order/generic_fns/pymol.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order/generic_fns/pymol.py?rev=9156&r1=9155&r2=9156&view=diff
==============================================================================
--- branches/frame_order/generic_fns/pymol.py (original)
+++ branches/frame_order/generic_fns/pymol.py Thu Jun 25 16:26:11 2009
@@ -178,11 +178,11 @@
             id = file_root(pdb_file)
 
             # Already loaded.
-            if file in open_files:
+            if pdb_file in open_files:
                 continue
 
             # Add to the open file list.
-            open_files.append(file)
+            open_files.append(pdb_file)
 
             # Hide everything.
             pymol.pipe_write("cmd.hide('everything'," + `id` + ")")




Related Messages


Powered by MHonArc, Updated Thu Jun 25 16:40:03 2009