mailr24555 - /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 17, 2014 - 16:46:
Author: bugman
Date: Thu Jul 17 16:46:57 2014
New Revision: 24555

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

This is for the corresponding _model_loop_spin() method.  It can be aliased 
in the specific analyses
to provide the print_model_title() API method.


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=24555&r1=24554&r2=24555&view=diff
==============================================================================
--- branches/zooming_grid_search/specific_analyses/api_common.py        
(original)
+++ branches/zooming_grid_search/specific_analyses/api_common.py        Thu 
Jul 17 16:46:57 2014
@@ -24,11 +24,13 @@
 
 # Python module imports.
 from copy import deepcopy
+import sys
 
 # relax module imports.
 from data_store.mol_res_spin import SpinContainer
 import lib.arg_check
 from lib.errors import RelaxError, RelaxNoSequenceError
+from lib.text.sectioning import subsection
 from pipe_control.mol_res_spin import count_spins, exists_mol_res_spin_data, 
return_spin, spin_loop
 
 
@@ -299,6 +301,19 @@
         """Dummy method, normally for deselecting spins with insufficient 
data for minimisation."""
 
 
+    def _print_model_title_spin(self, model_info=None):
+        """Default method for when the model_info() method simply loops over 
spins.
+
+        @keyword model_info:    The model information from model_info().
+        @type model_info:       int
+        """
+
+        # The printout.
+        spin_id = model_info[1]
+        text = "The spin %s" % spin_id
+        subsection(file=sys.stdout, text=text, prespace=2)
+
+
     def _return_no_conversion_factor(self, param):
         """Method for returning 1.0.
 




Related Messages


Powered by MHonArc, Updated Thu Jul 17 17:00:02 2014