Author: bugman Date: Tue Sep 3 11:27:05 2013 New Revision: 20767 URL: http://svn.gna.org/viewcvs/relax?rev=20767&view=rev Log: Fix for unpacking the parameters correctly. Progress sr #3071: https://gna.org/support/index.php?3071 - Implementation of Tollinger/Kay dispersion model (2001) Following the guide at: http://wiki.nmr-relax.com/Tutorial_for_adding_relaxation_dispersion_models_to_relax Troels E. Linnet provided this patch. Commit by: tlinnet _aaattt_ gmail_dot_com Signed-off-by: Edward d'Auvergne <edward@xxxxxxxxxxxxx> Modified: branches/relax_disp/target_functions/relax_disp.py Modified: branches/relax_disp/target_functions/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/target_functions/relax_disp.py?rev=20767&r1=20766&r2=20767&view=diff ============================================================================== --- branches/relax_disp/target_functions/relax_disp.py (original) +++ branches/relax_disp/target_functions/relax_disp.py Tue Sep 3 11:27:05 2013 @@ -1056,8 +1056,8 @@ # Unpack the parameter values. R20A = params[:self.end_index[0]] - dw = params[self.end_index[1]:self.end_index[2]] - kA = params[self.end_index[2]+1] + dw = params[self.end_index[0]:self.end_index[1]] + kA = params[self.end_index[1]] # Initialise. chi2_sum = 0.0