mailr22697 - /trunk/specific_analyses/model_free/api.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 10, 2014 - 18:42:
Author: bugman
Date: Thu Apr 10 18:42:36 2014
New Revision: 22697

URL: http://svn.gna.org/viewcvs/relax?rev=22697&view=rev
Log:
Eliminated the model-free specific analysis API data_type() method.

This functionality is now provided by the parameter list object.


Modified:
    trunk/specific_analyses/model_free/api.py

Modified: trunk/specific_analyses/model_free/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/model_free/api.py?rev=22697&r1=22696&r2=22697&view=diff
==============================================================================
--- trunk/specific_analyses/model_free/api.py   (original)
+++ trunk/specific_analyses/model_free/api.py   Thu Apr 10 18:42:36 2014
@@ -656,45 +656,6 @@
             # If the name is not in 'data_cont', add it.
             if not hasattr(data_cont, name):
                 setattr(data_cont, name, init_data)
-
-
-    def data_type(self, param=None):
-        """Return the type of data, as a string, that the parameter should 
be.
-
-        @keyword param:     The parameter name.
-        @type param:        list of str
-        @return:            The type of the parameter, as a string.  I.e. 
'int', 'float', 'str', 'bool', 'list of str', 'dict of bool', etc.
-        @rtype:             str
-        """
-
-        # A dictionary of all the types.
-        types = {
-            'select':           bool,
-            'fixed':            bool,
-            'nucleus':          str,
-            'model':            str,
-            'equation':         str,
-            'params':           [str],
-            's2':               float,
-            's2f':              float,
-            's2s':              float,
-            'local_tm':         float,
-            'te':               float,
-            'tf':               float,
-            'ts':               float,
-            'rex':              float,
-            'csa':              float,
-            'chi2':             float,
-            'iter':             int,
-            'f_count':          int,
-            'g_count':          int,
-            'h_count':          int,
-            'warning':          str
-        }
-
-        # Return the type, if in the list.
-        if param in types:
-            return types[param]
 
 
     def default_value(self, param):




Related Messages


Powered by MHonArc, Updated Thu Apr 10 19:40:02 2014