1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 import sys
25
26 import help
27
28
31
32 self.__relax_help__ = \
33 """Class containing functions specific to consistency tests for datasets from different fields."""
34
35
36 self.__relax_help__ = self.__relax_help__ + "\n" + help.relax_class_help
37
38
39 self.__relax__ = relax
40
41
42 - def set_frq(self, run=None, frq=None):
43 """Function for selecting which relaxation data to use in the consistency tests.
44
45 Keyword Arguments
46 ~~~~~~~~~~~~~~~~~
47
48 run: The name of the run.
49
50 frq: The spectrometer frequency in Hz.
51
52
53 Description
54 ~~~~~~~~~~~
55
56 This function will select the relaxation data to use in the consistency tests corresponding
57 to the given frequencies.
58
59
60 Examples
61 ~~~~~~~~
62
63 relax> consistency_tests.set_frq('test', 600.0 * 1e6)
64 relax> consistency_tests.set_frq(run='test', frq=600.0 * 1e6)
65 """
66
67
68 if self.__relax__.interpreter.intro:
69 text = sys.ps3 + "consistency_tests.set_frq("
70 text = text + "run=" + `run`
71 text = text + ", frq=" + `frq` + ")"
72 print text
73
74
75 if type(run) != str:
76 raise RelaxStrError, ('run', run)
77
78
79 if type(frq) != float:
80 raise RelaxStrError, ('frq', frq)
81
82
83 self.__relax__.specific.consistency_tests.set_frq(run=run, frq=frq)
84