mailr24573 - /branches/zooming_grid_search/specific_analyses/consistency_tests/api.py


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

Header


Content

Posted by edward on July 18, 2014 - 16:43:
Author: bugman
Date: Fri Jul 18 16:43:39 2014
New Revision: 24573

URL: http://svn.gna.org/viewcvs/relax?rev=24573&view=rev
Log:
Created the consistency testing specific API method get_param_names().

This is now required for the minimise.calculate user function, specifically 
for the analysis
independent assemble_scaling_matrix() function.  The get_param_names() method 
simply returns the
fixed list of parameter names.


Modified:
    branches/zooming_grid_search/specific_analyses/consistency_tests/api.py

Modified: 
branches/zooming_grid_search/specific_analyses/consistency_tests/api.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/zooming_grid_search/specific_analyses/consistency_tests/api.py?rev=24573&r1=24572&r2=24573&view=diff
==============================================================================
--- branches/zooming_grid_search/specific_analyses/consistency_tests/api.py   
  (original)
+++ branches/zooming_grid_search/specific_analyses/consistency_tests/api.py   
  Fri Jul 18 16:43:39 2014
@@ -246,6 +246,19 @@
                 setattr(data_cont, name, None)
 
 
+    def get_param_names(self, model_info=None):
+        """Return a vector of parameter names.
+
+        @keyword model_info:    The model information from model_loop().
+        @type model_info:       unknown
+        @return:                The vector of parameter names.
+        @rtype:                 list of str
+        """
+
+        # Return the fixed list.
+        return ['j0', 'f_eta', 'f_r2']
+
+
     def overfit_deselect(self, data_check=True, verbose=True):
         """Deselect spins which have insufficient data to support 
calculation.
 




Related Messages


Powered by MHonArc, Updated Fri Jul 18 20:00:03 2014