mailr13743 - /1.3/generic_fns/spectrum.py


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

Header


Content

Posted by edward on July 19, 2011 - 17:18:
Author: bugman
Date: Tue Jul 19 17:18:49 2011
New Revision: 13743

URL: http://svn.gna.org/viewcvs/relax?rev=13743&view=rev
Log:
Bug fix for the spectrum user functions for when the ID order does not match 
those loaded.

If the order of IDs sent to spectrum.replicated did not match the order they 
were loaded by 
spectrum.read_intensities, then the spectrum.error_analysis user function 
would fail.  The order is
no longer important.


Modified:
    1.3/generic_fns/spectrum.py

Modified: 1.3/generic_fns/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/spectrum.py?rev=13743&r1=13742&r2=13743&view=diff
==============================================================================
--- 1.3/generic_fns/spectrum.py (original)
+++ 1.3/generic_fns/spectrum.py Tue Jul 19 17:18:49 2011
@@ -448,8 +448,8 @@
         cdp.var_I[id] = cdp.var_I[id] / float(count)
 
         # Set all spectra variances.
-        for j in xrange(1, num_spectra):
-            cdp.var_I[spectra[j]] = cdp.var_I[spectra[0]]
+        for j in range(num_spectra):
+            cdp.var_I[spectra[j]] = cdp.var_I[id]
 
         # Print out.
         print(("Standard deviation:  %s" % sqrt(cdp.var_I[id])))




Related Messages


Powered by MHonArc, Updated Tue Jul 19 17:40:02 2011