mailr27556 - /trunk/specific_analyses/api_base.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:24:
Author: bugman
Date: Thu Feb  5 18:24:03 2015
New Revision: 27556

URL: http://svn.gna.org/viewcvs/relax?rev=27556&view=rev
Log:
Defined the get_model_container() specific analysis API method.

This base method raises a RelaxImplementError, therefore each analysis type 
must implement its own
method (or use an API common method).


Modified:
    trunk/specific_analyses/api_base.py

Modified: trunk/specific_analyses/api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/api_base.py?rev=27556&r1=27555&r2=27556&view=diff
==============================================================================
--- trunk/specific_analyses/api_base.py (original)
+++ trunk/specific_analyses/api_base.py Thu Feb  5 18:24:03 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).         
 #
 #                                                                            
 #
@@ -280,6 +280,19 @@
 
         # Not implemented.
         raise RelaxImplementError('eliminate')
+
+
+    def get_model_container(self, model_info=None):
+        """Return the data container for the model.
+
+        @keyword model_info:    The model information from model_loop().
+        @type model_info:       unknown
+        @return:                The data container corresponding to the 
model.
+        @rtype:                 class instance
+        """
+
+        # Not implemented.
+        raise RelaxImplementError('get_model_container')
 
 
     def get_param_names(self, model_info=None):




Related Messages


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