mailr27557 - /trunk/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 February 05, 2015 - 18:29:
Author: bugman
Date: Thu Feb  5 18:29:00 2015
New Revision: 27557

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

This is to be used for the get_model_container() for returning the current 
data pipe object as the
model container.  This is for the global models where the model information 
is stored in the pipe
object rather than in spin containers.


Modified:
    trunk/specific_analyses/api_common.py

Modified: trunk/specific_analyses/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_common.py?rev=27557&r1=27556&r2=27557&view=diff
==============================================================================
--- trunk/specific_analyses/api_common.py       (original)
+++ trunk/specific_analyses/api_common.py       Thu Feb  5 18:29:00 2015
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2004-2014 Edward d'Auvergne                                  
 #
+# Copyright (C) 2004-2015 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax (http://www.nmr-relax.com).         
 #
 #                                                                            
 #
@@ -167,6 +167,19 @@
         return False
 
 
+    def _get_model_container_cdp(self, model_info=None):
+        """Return the current data pipe as the model container.
+
+        @keyword model_info:    The model information from model_loop().
+        @type model_info:       unknown
+        @return:                The data container corresponding to the 
model.
+        @rtype:                 class instance
+        """
+
+        # Simply return the current data pipe object.
+        return cdp
+
+
     def _has_errors_spin(self):
         """Testing if errors exist for the current data pipe (spin system 
specific).
 




Related Messages


Powered by MHonArc, Updated Thu Feb 05 18:40:02 2015