Author: bugman Date: Wed May 15 17:20:49 2013 New Revision: 19687 URL: http://svn.gna.org/viewcvs/relax?rev=19687&view=rev Log: Fix for the linear constraints setup of the 'R2eff' relaxation dispersion model. There are no constraints, so the specific_analyses.relax_disp.parameters.linear_constraints() function now returns A and b values of None. Modified: branches/relax_disp/specific_analyses/relax_disp/parameters.py Modified: branches/relax_disp/specific_analyses/relax_disp/parameters.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/parameters.py?rev=19687&r1=19686&r2=19687&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/parameters.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/parameters.py Wed May 15 17:20:49 2013 @@ -421,22 +421,9 @@ i = 0 j = 0 - # The R2eff model. + # The R2eff model (no need for constraints). if cdp.model == MODEL_R2EFF: - for spin_index in range(len(spins)): - # Alias the spin. - spin = spins[spin_index] - - # Loop over each exponential curve. - for exp_i, key in loop_exp_curve(): - # Loop over the parameters. - for k in range(len(spin.params)): - # The transversal relaxation rate >= 0. - if spin.params[k] == 'r2': - A.append(zero_array * 0.0) - A[j][i] = 1.0 - b.append(0.0) - j += 1 + return None, None # All other models. else: