1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 """The consistency_tests user function definitions."""
25
26
27 from graphics import ANALYSIS_IMAGE_PATH
28 from pipe_control import spectrometer
29 from specific_analyses.consistency_tests.uf import set_frq
30 from user_functions.data import Uf_info; uf_info = Uf_info()
31 from user_functions.objects import Desc_container
32
33
34
35 uf_class = uf_info.add_class('consistency_tests')
36 uf_class.title = "Class containing functions specific to consistency tests for datasets from different fields."
37 uf_class.menu_text = "&consistency_tests"
38 uf_class.gui_icon = "relax.consistency_testing"
39
40
41
42 uf = uf_info.add_uf('consistency_tests.set_frq')
43 uf.title = "Select which relaxation data to use in the consistency tests by NMR spectrometer frequency."
44 uf.title_short = "Spectrometer selection."
45 uf.add_keyarg(
46 name = "frq",
47 py_type = "float",
48 desc_short = "spectrometer frequency in Hz",
49 desc = "The spectrometer frequency in Hz. This must match the currently loaded data to the last decimal point. See the 'sfrq' parameter in the Varian procpar file or the 'SFO1' parameter in the Bruker acqus file.",
50 wiz_element_type = 'combo',
51 wiz_combo_iter = spectrometer.get_frequencies,
52 wiz_read_only = True,
53 )
54
55 uf.desc.append(Desc_container())
56 uf.desc[-1].add_paragraph("This will select the relaxation data to use in the consistency tests corresponding to the given frequencies. The data is selected by the spectrometer frequency in Hertz, which should be set to the exact value (see the 'sfrq' parameter in the Varian procpar file or the 'SFO1' parameter in the Bruker acqus file). Note thought that the R1, R2 and NOE are all expected to have the exact same frequency in the J(w) mapping analysis (to the last decimal point).")
57
58 uf.desc.append(Desc_container("Prompt examples"))
59 uf.desc[-1].add_prompt("relax> consistency_tests.set_frq(600.0 * 1e6)")
60 uf.desc[-1].add_prompt("relax> consistency_tests.set_frq(frq=600.0 * 1e6)")
61 uf.backend = set_frq
62 uf.menu_text = "&set_frq"
63 uf.gui_icon = "relax.frq"
64 uf.wizard_height_desc = 350
65 uf.wizard_size = (700, 500)
66 uf.wizard_image = ANALYSIS_IMAGE_PATH + 'consistency_testing_200x94.png'
67