Author: bugman Date: Wed Jun 5 18:26:11 2013 New Revision: 19871 URL: http://svn.gna.org/viewcvs/relax?rev=19871&view=rev Log: Added two methods to the specific analysis common API class. These are the _model_type_global() and _model_type_local() methods for always specifying that the model type is global (i.e. at the level of the data pipe) or local (i.e. there can be multiple clusters of models). 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=19871&r1=19870&r2=19871&view=diff ============================================================================== --- trunk/specific_analyses/api_common.py (original) +++ trunk/specific_analyses/api_common.py Wed Jun 5 18:26:11 2013 @@ -221,6 +221,28 @@ yield 0 + def _model_type_global(self): + """Return the type of the model as being 'global'. + + @return: The model type of 'global'. + @rtype: str + """ + + # Global models. + return 'global' + + + def _model_type_local(self): + """Return the type of the model as being 'local'. + + @return: The model type of 'local'. + @rtype: str + """ + + # Local models. + return 'local' + + def _num_instances_spin(self): """Return the number of instances, equal to the number of selected spins.