mailRe: Consistency tests


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

Header


Content

Posted by Sebastien Morin on July 09, 2007 - 17:05:
Hi again

Here is a first patch for the code 'prompt/consistency_tests.py' of the 1.2 
branch for consistency testing.

Cheers


Séb



Index: prompt/consistency_tests.py
===================================================================
--- prompt/consistency_tests.py (revision 3324)
+++ prompt/consistency_tests.py (working copy)
@@ -25,11 +25,11 @@
 import help
 
 
-class Jw_mapping:
+class Consistency_tests:
     def __init__(self, relax):
         # Help.
         self.__relax_help__ = \
-        """Class containing functions specific to reduced spectral density 
mapping."""
+        """Class containing functions specific to consistency tests for 
datasets from different fields."""
 
         # Add the generic help string.
         self.__relax_help__ = self.__relax_help__ + "\n" + 
help.relax_class_help
@@ -39,7 +39,7 @@
 
 
     def set_frq(self, run=None, frq=None):
-        """Function for selecting which relaxation data to use in the J(w) 
mapping.
+        """Function for selecting which relaxation data to use in the 
consistency tests.
 
         Keyword Arguments
         ~~~~~~~~~~~~~~~~~
@@ -48,24 +48,23 @@
 
         frq:  The spectrometer frequency in Hz.
 
-
         Description
         ~~~~~~~~~~~
 
-        This function will select the relaxation data to use in the reduced 
spectral density mapping
-        corresponding to the given frequency.
+        This function will select the relaxation data to use in the 
consistency tests
+        corresponding to the given frequencies.
 
 
         Examples
         ~~~~~~~~
 
-        relax> jw_mapping.set_frq('jw', 600.0 * 1e6)
-        relax> jw_mapping.set_frq(run='jw', frq=600.0 * 1e6)
+        relax> consistency_tests.set_frq('test', 600.0 * 1e6)
+        relax> consistency_tests.set_frq(run='test', frq=600.0 * 1e6)
         """
 
         # Function intro text.
         if self.__relax__.interpreter.intro:
-            text = sys.ps3 + "jw_mapping.set_frq("
+            text = sys.ps3 + "consistency_tests.set_frq("
             text = text + "run=" + `run`
             text = text + ", frq=" + `frq` + ")"
             print text
@@ -74,9 +73,9 @@
         if type(run) != str:
             raise RelaxStrError, ('run', run)
 
-        # The frq argument.
+        # The frq arguments.
         if type(frq) != float:
             raise RelaxStrError, ('frq', frq)
 
         # Execute the functional code.
-        self.__relax__.specific.jw_mapping.set_frq(run=run, frq=frq)
+        self.__relax__.specific.consistency_tests.set_frq(run=run, frq=frq)

Related Messages


Powered by MHonArc, Updated Mon Jul 09 22:20:40 2007