mailr8331 - /branches/relax_disp/specific_fns/relax_disp.py


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

Header


Content

Posted by sebastien . morin . 1 on January 08, 2009 - 01:09:
Author: semor
Date: Thu Jan  8 00:48:34 2009
New Revision: 8331

URL: http://svn.gna.org/viewcvs/relax?rev=8331&view=rev
Log:
Changed 'relax_time' instances to 'cpmg_frq'.


Modified:
    branches/relax_disp/specific_fns/relax_disp.py

Modified: branches/relax_disp/specific_fns/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_fns/relax_disp.py?rev=8331&r1=8330&r2=8331&view=diff
==============================================================================
--- branches/relax_disp/specific_fns/relax_disp.py (original)
+++ branches/relax_disp/specific_fns/relax_disp.py Thu Jan  8 00:48:34 2009
@@ -122,7 +122,7 @@
 
             # Intensity scaling.
             elif search('^i', spin.params[i]):
-                # Find the position of the first time point.
+                # Find the position of the first CPMG pulse train frequency 
point.
                 pos = cdp.cpmg_frqs.index(min(cdp.cpmg_frqs))
 
                 # Scaling.
@@ -135,15 +135,15 @@
         return scaling_matrix
 
 
-    def back_calc(self, spin=None, relax_time_index=None):
-        """Back-calculation of peak intensity for the given relaxation time.
-
-        @keyword spin:              The spin container.
-        @type spin:                 SpinContainer instance
-        @keyword relax_time_index:  The index for the desired relaxation 
time.
-        @type relax_time_index:     int
-        @return:                    The peak intensity for the desired 
relaxation time.
-        @rtype:                     float
+    def back_calc(self, spin=None, cpmg_frq_index=None):
+        """Back-calculation of peak intensity for the given CPMG pulse train 
frequency.
+
+        @keyword spin:            The spin container.
+        @type spin:               SpinContainer instance
+        @keyword cpmg_frq_index:  The index for the desired CPMG pulse train 
frequency.
+        @type cpmg_frq_index:     int
+        @return:                  The peak intensity for the desired CPMG 
pulse train frequency.
+        @rtype:                   float
         """
 
         # Alias the current data pipe.
@@ -165,7 +165,7 @@
         results = back_calc_I()
 
         # Return the correct peak height.
-        return results[relax_time_index]
+        return results[cpmg_frq_index]
 
 
     def cpmg_frq(self, frq=0, spectrum_id=None):
@@ -239,7 +239,7 @@
         # Loop over the spectral time points.
         for j in xrange(len(cdp.cpmg_frqs)):
             # Back calculate the value.
-            value = self.back_calc(spin=spin, relax_time_index=j)
+            value = self.back_calc(spin=spin, cpmg_frq_index=j)
 
             # Append the value.
             mc_data.append(value)




Related Messages


Powered by MHonArc, Updated Thu Jan 08 01:20:02 2009