mailr21557 - /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 November 20, 2013 - 19:13:
Author: bugman
Date: Wed Nov 20 19:13:47 2013
New Revision: 21557

URL: http://svn.gna.org/viewcvs/relax?rev=21557&view=rev
Log:
The relax_disp.write_disp_curves user function is now more robust for when 
data is missing.


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=21557&r1=21556&r2=21557&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Wed Nov 20 
19:13:47 2013
@@ -2512,7 +2512,7 @@
 
             # Format the R2eff data.
             r2eff = "-"
-            if key in current_spin.r2eff:
+            if hasattr(current_spin, 'r2eff') and  key in current_spin.r2eff:
                 r2eff = "%.15f" % current_spin.r2eff[key]
 
             # Format the R2eff back calc data.
@@ -2522,7 +2522,7 @@
 
             # Format the R2eff errors.
             r2eff_err = "-"
-            if key in current_spin.r2eff_err:
+            if hasattr(current_spin, 'r2eff_err') and  key in 
current_spin.r2eff_err:
                 r2eff_err = "%.15f" % current_spin.r2eff_err[key]
 
             # Write out the data.




Related Messages


Powered by MHonArc, Updated Wed Nov 20 19:40:02 2013