mailr24066 - /branches/disp_spin_speed/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 June 18, 2014 - 10:12:
Author: bugman
Date: Wed Jun 18 10:12:07 2014
New Revision: 24066

URL: http://svn.gna.org/viewcvs/relax?rev=24066&view=rev
Log:
The relaxation dispersion target function can now be set up when the optional 
frqs_H argument is None.

This allows the profiling scripts to run.


Modified:
    branches/disp_spin_speed/target_functions/relax_disp.py

Modified: branches/disp_spin_speed/target_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/target_functions/relax_disp.py?rev=24066&r1=24065&r2=24066&view=diff
==============================================================================
--- branches/disp_spin_speed/target_functions/relax_disp.py     (original)
+++ branches/disp_spin_speed/target_functions/relax_disp.py     Wed Jun 18 
10:12:07 2014
@@ -275,8 +275,9 @@
                     frq = frqs[ei][si][mi]
                     self.frqs[ei, si, mi, :] = frq
                     self.frqs_squared[ei, si, mi, :] = frq**2
-                    frq_H = frqs_H[ei][si][mi]
-                    self.frqs_H[ei, si, mi, :] = frq_H
+                    if frq_H != None:
+                        frq_H = frqs_H[ei][si][mi]
+                        self.frqs_H[ei, si, mi, :] = frq_H
 
                     # Fill the relaxation time.
                     relax_time = relax_times[ei, mi]




Related Messages


Powered by MHonArc, Updated Wed Jun 18 10:20:03 2014