mailr21637 - /branches/relax_disp/target_functions/relax_disp.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 25, 2013 - 10:56:
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])




Related Messages


Powered by MHonArc, Updated Mon Nov 25 11:20:02 2013