Author: tlinnet Date: Mon Jun 16 19:01:41 2014 New Revision: 23991 URL: http://svn.gna.org/viewcvs/relax?rev=23991&view=rev Log: Fix for plotting, since the back_calc now can hold more datapoints that cpmg frequencies. This is because the numpy array has been expanded to the maximum number of points. Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion models for Clustered analysis. Modified: branches/disp_spin_speed/specific_analyses/relax_disp/data.py Modified: branches/disp_spin_speed/specific_analyses/relax_disp/data.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/specific_analyses/relax_disp/data.py?rev=23991&r1=23990&r2=23991&view=diff ============================================================================== --- branches/disp_spin_speed/specific_analyses/relax_disp/data.py (original) +++ branches/disp_spin_speed/specific_analyses/relax_disp/data.py Mon Jun 16 19:01:41 2014 @@ -1854,6 +1854,9 @@ # Loop over the dispersion points. for di in range(len(back_calc[ei][0][mi][oi])): + # Back calc can have more points in end of array. + if di > len(cpmg_frqs_new[ei][mi][oi]) - 1: + continue # Skip invalid points (values of 1e100). if back_calc[ei][0][mi][oi][di] > 1e50: continue