mailr9947 - /1.3/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on November 24, 2009 - 19:58:
Author: bugman
Date: Tue Nov 24 19:58:18 2009
New Revision: 9947

URL: http://svn.gna.org/viewcvs/relax?rev=9947&view=rev
Log:
A number of fixes for the model-free analysis specific API methods.


Modified:
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=9947&r1=9946&r2=9947&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Tue Nov 24 19:58:18 2009
@@ -1171,11 +1171,13 @@
         return mc_data
 
 
-    def data_init(self, spin):
-        """Function for initialising the spin specific data structures.
-
-        @param spin:    The spin data container.
-        @type spin:     SpinContainer instance
+    def data_init(self, data_cont, sim=False):
+        """Initialise the spin specific data structures.
+
+        @param data_cont:   The spin data container.
+        @type data_cont:    SpinContainer instance
+        @keyword sim:       The Monte Carlo simulation flag, which if true 
will initialise the simulation data structure.
+        @type sim:          bool
         """
 
         # Get the data names.
@@ -1187,7 +1189,7 @@
         for name in data_names:
             # Relaxation data structures.
             if name in relax_data_names and not relax_data_init:
-                relax_data.data_init(spin)
+                relax_data.data_init(data_cont)
                 relax_data_init = True
 
             # Data structures which are initially empty arrays.
@@ -1198,9 +1200,9 @@
             # Set everything else initially to None.
             init_data = None
 
-            # If the name is not in 'spin', add it.
-            if not hasattr(spin, name):
-                setattr(spin, name, init_data)
+            # If the name is not in 'data_cont', add it.
+            if not hasattr(data_cont, name):
+                setattr(data_cont, name, init_data)
 
 
     def data_names(self, set='all', error_names=False, sim_names=False):
@@ -2251,7 +2253,15 @@
 
 
     def return_grace_string(self, param):
-        """Function for returning the Grace string representing the 
parameter for axis labelling."""
+        """Return the Grace string representing the given parameter.
+
+        This is used for axis labelling.
+
+        @param param:   The specific analysis parameter.
+        @type param:    str
+        @return:        The Grace string representation of the parameter.
+        @rtype:         str
+        """
 
         # Get the object name.
         object_name = self.return_data_name(param)




Related Messages


Powered by MHonArc, Updated Tue Nov 24 20:00:02 2009