Author: semor Date: Mon Jan 14 01:16:18 2008 New Revision: 4696 URL: http://svn.gna.org/viewcvs/relax?rev=4696&view=rev Log: Removed the run argument from all consistency tests user functions. Modified: branches/consistency_tests_1.3/prompt/consistency_tests.py Modified: branches/consistency_tests_1.3/prompt/consistency_tests.py URL: http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.3/prompt/consistency_tests.py?rev=4696&r1=4695&r2=4696&view=diff ============================================================================== --- branches/consistency_tests_1.3/prompt/consistency_tests.py (original) +++ branches/consistency_tests_1.3/prompt/consistency_tests.py Mon Jan 14 01:16:18 2008 @@ -41,13 +41,11 @@ self.__relax__ = relax - def set_frq(self, run=None, frq=None): + def set_frq(self, frq=None): """Function for selecting which relaxation data to use in the consistency tests. Keyword Arguments ~~~~~~~~~~~~~~~~~ - - run: The name of the run. frq: The spectrometer frequency in Hz. @@ -62,24 +60,19 @@ Examples ~~~~~~~~ - relax> consistency_tests.set_frq('ct', 600.0 * 1e6) - relax> consistency_tests.set_frq(run='ct', frq=600.0 * 1e6) + relax> consistency_tests.set_frq(600.0 * 1e6) + relax> consistency_tests.set_frq(frq=600.0 * 1e6) """ # Function intro text. if self.__relax__.interpreter.intro: text = sys.ps3 + "consistency_tests.set_frq(" - text = text + "run=" + `run` - text = text + ", frq=" + `frq` + ")" + text = text + "frq=" + `frq` + ")" print text - - # The run argument. - if type(run) != str: - raise RelaxStrError, ('run', run) # The frq argument. if type(frq) != float: raise RelaxStrError, ('frq', frq) # Execute the functional code. - self.__relax__.specific.consistency_tests.set_frq(run=run, frq=frq) + self.__relax__.specific.consistency_tests.set_frq(frq=frq)