mailr21310 - /branches/relax_disp/specific_analyses/relax_disp/disp_data.py


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

Header


Content

Posted by edward on October 29, 2013 - 13:46:
Author: bugman
Date: Tue Oct 29 13:46:39 2013
New Revision: 21310

URL: http://svn.gna.org/viewcvs/relax?rev=21310&view=rev
Log:
The specific_analyses.relax_disp.disp_data.loop_time() function can now 
handle no relaxation times being set.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/disp_data.py

Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=21310&r1=21309&r2=21310&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Tue Oct 29 
13:46:39 2013
@@ -770,8 +770,13 @@
     """
 
     # Loop over the time points.
-    for time in cdp.relax_time_list:
-        yield time
+    if hasattr(cdp, 'relax_time_list'):
+        for time in cdp.relax_time_list:
+            yield time
+
+    # No times set.
+    else:
+        yield None
 
 
 def num_exp_types():




Related Messages


Powered by MHonArc, Updated Tue Oct 29 14:00:02 2013