mailr26842 - /trunk/specific_analyses/relax_fit/api.py


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

Header


Content

Posted by edward on November 29, 2014 - 17:19:
Author: bugman
Date: Sat Nov 29 17:19:16 2014
New Revision: 26842

URL: http://svn.gna.org/viewcvs/relax?rev=26842&view=rev
Log:
Updated the relaxation curve-fitting get_param_names() API method to handle 
all models.

This now simply returns the spin container 'params' list, allowing all models 
to be properly
supported.


Modified:
    trunk/specific_analyses/relax_fit/api.py

Modified: trunk/specific_analyses/relax_fit/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_fit/api.py?rev=26842&r1=26841&r2=26842&view=diff
==============================================================================
--- trunk/specific_analyses/relax_fit/api.py    (original)
+++ trunk/specific_analyses/relax_fit/api.py    Sat Nov 29 17:19:16 2014
@@ -213,8 +213,11 @@
         @rtype:                 list of str
         """
 
-        # Simply return the two parameter names.
-        return ['rx', 'i0']
+        # Unpack the data.
+        spin, spin_id = model_info
+
+        # Return the parameter names.
+        return spin.params
 
 
     def get_param_values(self, model_info=None, sim_index=None):




Related Messages


Powered by MHonArc, Updated Sat Nov 29 17:40:02 2014