mailr20325 - /branches/relax_disp/specific_analyses/relax_disp/parameters.py


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

Header


Content

Posted by edward on July 16, 2013 - 11:06:
Author: bugman
Date: Tue Jul 16 11:06:50 2013
New Revision: 20325

URL: http://svn.gna.org/viewcvs/relax?rev=20325&view=rev
Log:
Fix for the dispersion specific loop_parameters() method for the R20A and 
R20B parameters.

The frequency index is now correctly returned for these and the R20 parameter.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/parameters.py

Modified: branches/relax_disp/specific_analyses/relax_disp/parameters.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/parameters.py?rev=20325&r1=20324&r2=20325&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/parameters.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/parameters.py Tue Jul 16 
11:06:50 2013
@@ -418,11 +418,11 @@
     else:
         # First the R2 parameters (one per spin per field strength).
         for spin_index in range(len(spins)):
-            # Reset the frequency index.
-            frq_index = -1
-
             # The R2 parameter.
             if 'r2' in spins[0].params:
+                # Reset the frequency index.
+                frq_index = -1
+
                 # Loop over the spectrometer frequencies.
                 for frq in loop_frq():
                     # First increment the indices.
@@ -434,6 +434,9 @@
 
             # The R2A parameter.
             if 'r2a' in spins[0].params:
+                # Reset the frequency index.
+                frq_index = -1
+
                 # Loop over the spectrometer frequencies.
                 for frq in loop_frq():
                     # First increment the indices.
@@ -445,6 +448,9 @@
 
             # The R2B parameter.
             if 'r2b' in spins[0].params:
+                # Reset the frequency index.
+                frq_index = -1
+
                 # Loop over the spectrometer frequencies.
                 for frq in loop_frq():
                     # First increment the indices.




Related Messages


Powered by MHonArc, Updated Tue Jul 16 11:20:02 2013