Author: bugman
Date: Mon Dec  1 10:42:42 2008
New Revision: 8071
URL: http://svn.gna.org/viewcvs/relax?rev=8071&view=rev
Log:
The spin specific error structure intensity_err is now set for each selected 
spin.
Modified:
    branches/spectral_errors/generic_fns/spectrum.py
Modified: branches/spectral_errors/generic_fns/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spectral_errors/generic_fns/spectrum.py?rev=8071&r1=8070&r2=8071&view=diff
==============================================================================
--- branches/spectral_errors/generic_fns/spectrum.py (original)
+++ branches/spectral_errors/generic_fns/spectrum.py Mon Dec  1 10:42:42 2008
@@ -201,9 +201,19 @@
         # Print out.
         print "\nStandard deviation (variance averaged over all spectra):  " 
+ `sqrt(var_I)`
 
-    # Create the standard deviation data structure.
+    # Loop over the spectra.
     for i in xrange(len(cdp.spectrum_ids)):
+        # Create the standard deviation data structure.
         cdp.sigma_I[i] = sqrt(cdp.var_I[i])
+
+        # Set the spin specific errors.
+        for spin in spin_loop():
+            # Skip deselected spins.
+            if not spin.select:
+                continue
+
+            # Set the error.
+            spin.intensity_err = cdp.sigma_I[i]
 
 
 def __errors_volume_no_repl():