mailr3326 - /branches/consistency_tests_1.2/prompt/consistency_tests.py


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

Header


Content

Posted by edward on July 09, 2007 - 21:39:
Author: bugman
Date: Mon Jul  9 21:39:20 2007
New Revision: 3326

URL: http://svn.gna.org/viewcvs/relax?rev=3326&view=rev
Log:
Application of Sebastien Morin's patch 'patch_prompt_consistency_tests'.

See the thread starting at 
https://mail.gna.org/public/relax-devel/2007-06/msg00008.html for
details.  The patch is located at 
https://mail.gna.org/public/relax-devel/2007-07/msg00014.html.



Modified:
    branches/consistency_tests_1.2/prompt/consistency_tests.py

Modified: branches/consistency_tests_1.2/prompt/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.2/prompt/consistency_tests.py?rev=3326&r1=3325&r2=3326&view=diff
==============================================================================
--- branches/consistency_tests_1.2/prompt/consistency_tests.py (original)
+++ branches/consistency_tests_1.2/prompt/consistency_tests.py Mon Jul  9 
21:39:20 2007
@@ -1,6 +1,7 @@
 
###############################################################################
 #                                                                            
 #
 # Copyright (C) 2004-2005 Edward d'Auvergne                                  
 #
+# Copyright (C) 2007 Sebastien Morin <sebastien.morin.1 at ulaval.ca>
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -25,11 +26,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 +40,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 +49,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 +74,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:00:06 2007