mailr19322 - /branches/relax_disp/specific_analyses/relax_disp.py


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

Header


Content

Posted by edward on April 03, 2013 - 12:59:
Author: bugman
Date: Wed Apr  3 12:59:20 2013
New Revision: 19322

URL: http://svn.gna.org/viewcvs/relax?rev=19322&view=rev
Log:
The relaxation dispersion specific analysis module is now using the base 
_data_init_spin() method.

This is aliased to data_init() and replaces the old non-functional method.


Modified:
    branches/relax_disp/specific_analyses/relax_disp.py

Modified: branches/relax_disp/specific_analyses/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp.py?rev=19322&r1=19321&r2=19322&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp.py Wed Apr  3 12:59:20 
2013
@@ -51,6 +51,7 @@
 
         # Place methods into the API.
         self.base_data_loop = self._base_data_loop_spin
+        self.data_init = self._data_init_spin
         self.model_loop = self._model_loop_spin
         self.return_conversion_factor = self._return_no_conversion_factor
         self.return_value = self._return_value_general
@@ -489,29 +490,6 @@
 
         # Return the MC data.
         return mc_data
-
-
-    def data_init(self, spin):
-        """Initialise the spin specific data structures.
-
-        @param spin:    The spin container.
-        @type spin:     SpinContainer instance
-        """
-
-        # Loop over the data structure names.
-        for name in self.data_names():
-            # Data structures which are initially empty arrays.
-            list_data = [ 'params' ]
-            if name in list_data:
-                init_data = []
-
-            # Otherwise initialise the data structure to None.
-            else:
-                init_data = None
-
-            # If the name is not in 'spin', add it.
-            if not hasattr(spin, name):
-                setattr(spin, name, init_data)
 
 
     def disassemble_param_vector(self, param_vector=None, spin=None, 
sim_index=None):




Related Messages


Powered by MHonArc, Updated Wed Apr 03 14:20:01 2013