mailr7099 - /1.3/specific_fns/jw_mapping.py


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

Header


Content

Posted by edward on August 08, 2008 - 06:12:
Author: bugman
Date: Thu Aug  7 23:11:24 2008
New Revision: 7099

URL: http://svn.gna.org/viewcvs/relax?rev=7099&view=rev
Log:
Implemented the create_mc_data() method.

In the 1.2 line, this was simply aliased to the return_data() method.


Modified:
    1.3/specific_fns/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=7099&r1=7098&r2=7099&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Thu Aug  7 23:11:24 2008
@@ -152,6 +152,23 @@
                 spin.jwh_sim.append(jwh)
 
 
+    def create_mc_data(spin_id):
+        """Return the Ri data structure for the corresponding spin.
+
+        @param spin_id: The spin identification string, as yielded by the 
base_data_loop() generator
+                        method.
+        @type spin_id:  str
+        @return:        The Monte Carlo simulation data.
+        @rtype:         list of floats
+        """
+
+        # Get the spin container.
+        spin = return_spin(spin_id)
+
+        # Return the data.
+        return spin.relax_data
+
+
     def data_init(self, data, sim=0):
         """Function for initialising the data structures."""
 




Related Messages


Powered by MHonArc, Updated Fri Aug 08 07:20:10 2008