mailr8003 - /branches/spectral_errors/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 November 21, 2008 - 10:13:
Author: bugman
Date: Fri Nov 21 10:13:41 2008
New Revision: 8003

URL: http://svn.gna.org/viewcvs/relax?rev=8003&view=rev
Log:
Fixes for the baseplane_rmsd() function.


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=8003&r1=8002&r2=8003&view=diff
==============================================================================
--- branches/spectral_errors/generic_fns/spectrum.py (original)
+++ branches/spectral_errors/generic_fns/spectrum.py Fri Nov 21 10:13:41 2008
@@ -32,7 +32,7 @@
 import sys
 
 # relax module imports.
-from generic_fns.mol_res_spin import exists_mol_res_spin_data, 
generate_spin_id, return_spin
+from generic_fns.mol_res_spin import exists_mol_res_spin_data, 
generate_spin_id, return_spin, spin_loop
 from generic_fns import pipes
 from relax_errors import RelaxError, RelaxArgNotInListError, 
RelaxNoSequenceError
 from relax_io import extract_data, strip
@@ -90,15 +90,15 @@
     if not exists_mol_res_spin_data():
         raise RelaxNoSequenceError
 
+    # Get the current data pipe.
+    cdp = pipes.get_pipe()
+
     # Test the spectrum id string.
     if spectrum_id not in cdp.spectrum_ids:
         raise RelaxError, "The peak intensities corresponding to the 
spectrum id '%s' does not exist."
 
     # The spectrum id index.
     spect_index = cdp.spectrum_ids.index(spectrum_id)
-
-    # Get the current data pipe.
-    cdp = pipes.get_pipe()
 
     # Loop over the spins.
     for spin in spin_loop(spin_id):




Related Messages


Powered by MHonArc, Updated Fri Nov 21 10:20:04 2008