Author: tlinnet Date: Tue Jul 22 16:51:28 2014 New Revision: 24620 URL: http://svn.gna.org/viewcvs/relax?rev=24620&view=rev Log: Code validation of lib/dispersion/cr72.py. Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion models for Clustered analysis. Modified: branches/disp_spin_speed/lib/dispersion/cr72.py Modified: branches/disp_spin_speed/lib/dispersion/cr72.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/lib/dispersion/cr72.py?rev=24620&r1=24619&r2=24620&view=diff ============================================================================== --- branches/disp_spin_speed/lib/dispersion/cr72.py (original) +++ branches/disp_spin_speed/lib/dispersion/cr72.py Tue Jul 22 16:51:28 2014 @@ -98,6 +98,7 @@ # Repetitive calculations (to speed up calculations). eta_scale = 2.0**(-3.0/2.0) + def r2eff_CR72(r20a=None, r20a_orig=None, r20b=None, r20b_orig=None, pA=None, dw=None, dw_orig=None, kex=None, cpmg_frqs=None, back_calc=None): """Calculate the R2eff values for the CR72 model. @@ -188,7 +189,7 @@ return # Calculate R2eff. This uses the temporary buffer and fill directly to back_calc. - multiply(cpmg_frqs, arccosh(fact), out=back_calc) + multiply(cpmg_frqs, arccosh(fact), out=back_calc) subtract(r20_kex, back_calc, out=back_calc) # Replace data in array.