mailr6276 - /1.3/specific_fns/model_free/results.py


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

Header


Content

Posted by edward on May 28, 2008 - 21:39:
Author: bugman
Date: Wed May 28 21:39:48 2008
New Revision: 6276

URL: http://svn.gna.org/viewcvs/relax?rev=6276&view=rev
Log:
Split the read_columnar_results() method into version specific methods.


Modified:
    1.3/specific_fns/model_free/results.py

Modified: 1.3/specific_fns/model_free/results.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/results.py?rev=6276&r1=6275&r2=6276&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/results.py (original)
+++ 1.3/specific_fns/model_free/results.py Wed May 28 21:39:48 2008
@@ -738,7 +738,7 @@
 
 
     def read_columnar_results(self, file_data, verbosity=1):
-        """Function for reading the results file.
+        """Read the model-free results file.
 
         @param file_data:   The processed results file data.
         @type file_data:    list of lists of str
@@ -749,6 +749,21 @@
 
         # Determine the results file version.
         version = self.__determine_version(file_data)
+
+        # Execute the version specific methods.
+        if version == '1.2':
+            self.__read_1_2_results(file_data, verbosity)
+
+
+    def read_1_2_results(self, file_data, verbosity=1):
+        """Read the relax 1.2 model-free results file.
+
+        @param file_data:   The processed results file data.
+        @type file_data:    list of lists of str
+        @keyword verbosity: A flag specifying the amount of information to 
print.  The higher the
+                            value, the greater the verbosity.
+        @type verbosity:    int
+        """
 
         # Extract and remove the header.
         header = file_data[0]




Related Messages


Powered by MHonArc, Updated Wed May 28 22:00:16 2008