mailr19488 - /trunk/pipe_control/spectrum.py


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

Header


Content

Posted by edward on April 17, 2013 - 23:00:
Author: bugman
Date: Wed Apr 17 23:00:53 2013
New Revision: 19488

URL: http://svn.gna.org/viewcvs/relax?rev=19488&view=rev
Log:
Fix for the spectrum.error_analysis user function for replicated spectra and 
subsets.

A second call to spectrum.error_analysis was removing the results from the 
first call.  This is now
avoided.


Modified:
    trunk/pipe_control/spectrum.py

Modified: trunk/pipe_control/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/spectrum.py?rev=19488&r1=19487&r2=19488&view=diff
==============================================================================
--- trunk/pipe_control/spectrum.py (original)
+++ trunk/pipe_control/spectrum.py Wed Apr 17 23:00:53 2013
@@ -81,8 +81,10 @@
         print("All spectra replicated:  Yes.")
 
     # Initialise.
-    cdp.sigma_I = {}
-    cdp.var_I = {}
+    if not hasattr(cdp, 'sigma_I'):
+        cdp.sigma_I = {}
+    if not hasattr(cdp, 'var_I'):
+        cdp.var_I = {}
 
     # The subset.
     subset_flag = False




Related Messages


Powered by MHonArc, Updated Wed Apr 17 23:20:02 2013