mailr6224 - /1.3/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 May 21, 2008 - 23:44:
Author: bugman
Date: Wed May 21 23:44:23 2008
New Revision: 6224

URL: http://svn.gna.org/viewcvs/relax?rev=6224&view=rev
Log:
Updated the sim_pack_data() method to the new relax design.


Modified:
    1.3/specific_fns/relax_fit.py

Modified: 1.3/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/relax_fit.py?rev=6224&r1=6223&r2=6224&view=diff
==============================================================================
--- 1.3/specific_fns/relax_fit.py (original)
+++ 1.3/specific_fns/relax_fit.py Wed May 21 23:44:23 2008
@@ -1182,12 +1182,18 @@
         spin.select_sim = select_sim
 
 
-    def sim_pack_data(self, run, i, sim_data):
-        """Function for packing Monte Carlo simulation data."""
+    def sim_pack_data(self, spin, sim_data):
+        """Pack the Monte Carlo simulation data.
+
+        @param spin:        The spin container.
+        @type spin:         SpinContainer instance
+        @param sim_data:    The Monte Carlo simulation data.
+        @type sim_data:     list of float
+        """
 
         # Test if the simulation data already exists.
-        if hasattr(relax_data_store.res[run][i], 'sim_intensities'):
+        if hasattr(spin, 'sim_intensities'):
             raise RelaxError, "Monte Carlo simulation data already exists."
 
         # Create the data structure.
-        relax_data_store.res[run][i].sim_intensities = sim_data
+        spin.sim_intensities = sim_data




Related Messages


Powered by MHonArc, Updated Thu May 22 00:00:34 2008