Author: bugman Date: Thu Oct 31 20:50:20 2013 New Revision: 21368 URL: http://svn.gna.org/viewcvs/relax?rev=21368&view=rev Log: The dispersion target function num_disp_points structure is now variable. The number of points can now be different for each experiment type and each magnetic field strength. 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=21368&r1=21367&r2=21368&view=diff ============================================================================== --- branches/relax_disp/target_functions/relax_disp.py (original) +++ branches/relax_disp/target_functions/relax_disp.py Thu Oct 31 20:50:20 2013 @@ -163,7 +163,10 @@ self.num_disp_points.append([]) for frq_index in range(len(values[exp_type_index][0])): self.num_disp_points[-1].append([]) - self.num_disp_points[-1][-1] = len(values[exp_type_index][0][frq_index]) + if len(cpmg_frqs[exp_type_index][frq_index]): + self.num_disp_points[-1][-1] = len(self.cpmg_frqs[exp_type_index][frq_index]) + else: + self.num_disp_points[-1][-1] = len(self.spin_lock_nu1[exp_type_index][frq_index]) # Scaling initialisation. self.scaling_flag = False