Hi Troels, I was wondering if you have tried the following: self.back_calc[0][si][mi][0] = r2eff The last dimension of self.back_calc are the number of dispersion points. This should match r2eff. Hence the line above will result in a copy of r2eff placed into the self.back_calc numpy structure. It should fit perfectly. Regards, Edward On 20 May 2014 02:02, <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet Date: Tue May 20 02:02:19 2014 New Revision: 23250 URL: http://svn.gna.org/viewcvs/relax?rev=23250&view=rev Log: Fix for variable num_points not set. Modified: branches/disp_speed/target_functions/relax_disp.py Modified: branches/disp_speed/target_functions/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_speed/target_functions/relax_disp.py?rev=23250&r1=23249&r2=23250&view=diff ============================================================================== --- branches/disp_speed/target_functions/relax_disp.py (original) +++ branches/disp_speed/target_functions/relax_disp.py Tue May 20 02:02:19 2014 @@ -490,7 +490,7 @@ # This is to prevent pointer to class object array that cannot change. Should be equivalent to numpy.copyto (v. 1.7). #self.back_calc[0][si][mi][0][:] = r2eff # Parse back the value to update the back_calc class object. - for i in range(num_points): + for i in range(self.num_disp_points[0][si][mi][0]): self.back_calc[0][si][mi][0][i] = r2eff[i] # For all missing data points, set the back-calculated value to the measured values so that it has no effect on the chi-squared value. _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@xxxxxxx To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits