mailr24616 - /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 - 15:36:
Author: bugman
Date: Tue Jul 22 15:36:26 2014
New Revision: 24616

URL: http://svn.gna.org/viewcvs/relax?rev=24616&view=rev
Log:
Created the _print_model_title_global() specific analysis API method.

This is to be paired with the _model_loop_single_global() API method and it 
simply prints out the
prefix as 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=24616&r1=24615&r2=24616&view=diff
==============================================================================
--- branches/zooming_grid_search/specific_analyses/api_common.py        
(original)
+++ branches/zooming_grid_search/specific_analyses/api_common.py        Tue 
Jul 22 15:36:26 2014
@@ -24,6 +24,7 @@
 
 # Python module imports.
 from copy import deepcopy
+from string import split
 import sys
 
 # relax module imports.
@@ -305,6 +306,22 @@
         """Dummy method, normally for deselecting spins with insufficient 
data for minimisation."""
 
 
+    def _print_model_title_global(self, prefix=None, model_info=None):
+        """Default method for when the model_loop() method simply loops over 
a single global model.
+
+        @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 model information from 
_model_loop_single_global().  This should be zero for the single global model.
+        @type model_info:       int
+        """
+
+        # Strip out the text from the colon.
+        text = split(prefix, ':')[0]
+
+        # The printout.
+        subsection(file=sys.stdout, text=text, prespace=2)
+
+
     def _print_model_title_spin(self, prefix=None, model_info=None):
         """Default method for when the model_loop() method simply loops over 
spins.
 




Related Messages


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