Author: bugman Date: Mon Nov 25 10:56:49 2013 New Revision: 21637 URL: http://svn.gna.org/viewcvs/relax?rev=21637&view=rev Log: The relaxation dispersion target function class can now handle cpmg_frqs arguments of None. This is useful for R1rho models. 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=21637&r1=21636&r2=21637&view=diff ============================================================================== --- branches/relax_disp/target_functions/relax_disp.py (original) +++ branches/relax_disp/target_functions/relax_disp.py Mon Nov 25 10:56:49 2013 @@ -172,7 +172,7 @@ self.num_disp_points.append([]) for frq_index in range(len(values[exp_type_index][0])): self.num_disp_points[-1].append([]) - if len(cpmg_frqs[exp_type_index][frq_index]): + if cpmg_frqs != None and 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])