mailr24606 - /branches/zooming_grid_search/specific_analyses/api_common.py


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

Header


Content

Posted by edward on July 22, 2014 - 14:36:
Author: bugman
Date: Tue Jul 22 14:36:09 2014
New Revision: 24606

URL: http://svn.gna.org/viewcvs/relax?rev=24606&view=rev
Log:
Updated the _print_model_title_spin() specific API common method.

This now accepts the prefix argument and adds this to the title.


Modified:
    branches/zooming_grid_search/specific_analyses/api_common.py

Modified: branches/zooming_grid_search/specific_analyses/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/zooming_grid_search/specific_analyses/api_common.py?rev=24606&r1=24605&r2=24606&view=diff
==============================================================================
--- branches/zooming_grid_search/specific_analyses/api_common.py        
(original)
+++ branches/zooming_grid_search/specific_analyses/api_common.py        Tue 
Jul 22 14:36:09 2014
@@ -305,16 +305,18 @@
         """Dummy method, normally for deselecting spins with insufficient 
data for minimisation."""
 
 
-    def _print_model_title_spin(self, model_info=None):
+    def _print_model_title_spin(self, prefix=None, model_info=None):
         """Default method for when the model_loop() method simply loops over 
spins.
 
+        @keyword prefix:        The starting text of the title.  This should 
be printed out first, followed by the model information text.
+        @type prefix:           str
         @keyword model_info:    The spin container and the spin ID string 
from the _model_loop_spin() method.
         @type model_info:       SpinContainer instance, str
         """
 
         # The printout.
         spin_id = model_info[1]
-        text = "The spin %s" % spin_id
+        text = prefix + "The spin %s" % spin_id
         subsection(file=sys.stdout, text=text, prespace=2)
 
 




Related Messages


Powered by MHonArc, Updated Tue Jul 22 15:00:02 2014