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):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits