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 temperature user function definitions."""
25
26
27 from generic_fns import temperature
28 from graphics import WIZARD_IMAGE_PATH
29 from user_functions.data import Uf_info; uf_info = Uf_info()
30 from user_functions.objects import Desc_container
31
32
33
34 uf = uf_info.add_uf('temperature')
35 uf.title = "Specify the temperature of an experiment."
36 uf.title_short = "Experimental temperature."
37 uf.add_keyarg(
38 name = "id",
39 py_type = "str",
40 desc_short = "experiment ID string",
41 desc = "The experiment identification string."
42 )
43 uf.add_keyarg(
44 name = "temp",
45 py_type = "num",
46 desc_short = "experimental temperature",
47 desc = "The temperature of the experiment in Kalvin."
48 )
49
50 uf.desc.append(Desc_container())
51 uf.desc[-1].add_paragraph("This allows the temperature of an experiment to be set. This value should be in Kalvin. In certain analyses, for example those which use pseudocontact shift data, knowledge of the temperature is essential. For the pseudocontact shift, the experiment ID string should match one of the alignment IDs.")
52 uf.backend = temperature.set
53 uf.menu_text = "&temperature"
54 uf.gui_icon = "oxygen.status.weather-clear"
55 uf.wizard_size = (700, 500)
56