mailr14510 - /1.3/generic_fns/pymol_control.py


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

Header


Content

Posted by edward on August 29, 2011 - 15:10:
Author: bugman
Date: Mon Aug 29 15:10:50 2011
New Revision: 14510

URL: http://svn.gna.org/viewcvs/relax?rev=14510&view=rev
Log:
Bug fix for the pymol.macro_apply user function - the command history is now 
cleared.

Without this, previous macro files will be executed, but if they were 
temporary and no longer exist,
then pymol fails.


Modified:
    1.3/generic_fns/pymol_control.py

Modified: 1.3/generic_fns/pymol_control.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pymol_control.py?rev=14510&r1=14509&r2=14510&view=diff
==============================================================================
--- 1.3/generic_fns/pymol_control.py (original)
+++ 1.3/generic_fns/pymol_control.py Mon Aug 29 15:10:50 2011
@@ -372,6 +372,9 @@
     if not exists_mol_res_spin_data():
         raise RelaxNoSequenceError
 
+    # Clear the PyMOL history first.
+    pymol_obj.clear_history()
+
     # Create the macro.
     commands = create_macro(data_type=data_type, style=style, 
colour_start=colour_start, colour_end=colour_end, colour_list=colour_list)
 




Related Messages


Powered by MHonArc, Updated Mon Aug 29 15:20:02 2011