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