Author: semor Date: Thu Aug 25 17:08:39 2011 New Revision: 14458 URL: http://svn.gna.org/viewcvs/relax?rev=14458&view=rev Log: Made the code for disassembling the parameter vector more general. Before, there was an explicit statement of the "inv" equation. Now, the code is more general and "inv" became "exp_3param_inv_neg", one of the many 3-parameter equations... Modified: branches/inversion-recovery/specific_fns/relax_fit.py Modified: branches/inversion-recovery/specific_fns/relax_fit.py URL: http://svn.gna.org/viewcvs/relax/branches/inversion-recovery/specific_fns/relax_fit.py?rev=14458&r1=14457&r2=14458&view=diff ============================================================================== --- branches/inversion-recovery/specific_fns/relax_fit.py (original) +++ branches/inversion-recovery/specific_fns/relax_fit.py Thu Aug 25 17:08:39 2011 @@ -214,7 +214,7 @@ spin.i0_sim[sim_index] = param_vector[1] # Intensity at infinity. - if cdp.curve_type == 'inv': + if len(param_vector) == 3: spin.iinf_sim[sim_index] = param_vector[2] # Parameter values. @@ -226,7 +226,7 @@ spin.i0 = param_vector[1] # Intensity at infinity. - if cdp.curve_type == 'inv': + if len(param_vector) == 3: spin.iinf = param_vector[2]