mailr18306 - /trunk/specific_fns/relax_fit.py


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

Header


Content

Posted by edward on January 24, 2013 - 14:49:
Author: bugman
Date: Thu Jan 24 14:49:52 2013
New Revision: 18306

URL: http://svn.gna.org/viewcvs/relax?rev=18306&view=rev
Log:
Fixes for the relaxation curve-fitting specific return_data() method.

Strangely, it appears as if this method is never used.


Modified:
    trunk/specific_fns/relax_fit.py

Modified: trunk/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_fns/relax_fit.py?rev=18306&r1=18305&r2=18306&view=diff
==============================================================================
--- trunk/specific_fns/relax_fit.py (original)
+++ trunk/specific_fns/relax_fit.py Thu Jan 24 14:49:52 2013
@@ -850,15 +850,19 @@
             print("No spins have been deselected.")
 
 
-    def return_data(self, spin):
+    def return_data(self, data_id=None):
         """Function for returning the peak intensity data structure.
 
-        @param spin:    The spin container.
-        @type spin:     SpinContainer instance
-        @return:        The peak intensity data structure.
-        @rtype:         list of float
-        """
-
+        @keyword data_id:   The spin identification string, as yielded by 
the base_data_loop() generator method.
+        @type data_id:      str
+        @return:            The peak intensity data structure.
+        @rtype:             list of float
+        """
+
+        # Get the spin container.
+        spin = return_spin(data_id)
+
+        # Return the peak intensities.
         return spin.intensities
 
 




Related Messages


Powered by MHonArc, Updated Thu Jan 24 16:20:02 2013