1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 """The bruker user function definitions for interfacing with the Bruker Dynamics Center."""
24
25
26 from graphics import WIZARD_IMAGE_PATH
27 from pipe_control import bruker
28 from user_functions.data import Uf_info; uf_info = Uf_info()
29 from user_functions.objects import Desc_container
30
31
32
33 uf_class = uf_info.add_class('bruker')
34 uf_class.title = "Class containing the function for reading the Bruker Dynamics Center (DC) files."
35 uf_class.menu_text = "&bruker"
36 uf_class.gui_icon = "relax.bruker"
37
38
39
40 uf = uf_info.add_uf('bruker.read')
41 uf.title = "Read the relaxation data out of a Bruker Dynamics Center (DC) file."
42 uf.title_short = "Read a Bruker Dynamics Center file."
43 uf.add_keyarg(
44 name = "ri_id",
45 basic_types = ["str"],
46 desc_short = "relaxation data ID string",
47 desc = "The relaxation data ID string. This must be a unique identifier."
48 )
49 uf.add_keyarg(
50 name = "file",
51 arg_type = "file sel read",
52 desc_short = "file name",
53 desc = "The name of the Bruker Dynamics Center file containing the relaxation data.",
54 )
55 uf.add_keyarg(
56 name = "dir",
57 arg_type = "dir",
58 desc_short = "directory name",
59 desc = "The directory where the file is located.",
60 can_be_none = True
61 )
62
63 uf.desc.append(Desc_container())
64 uf.desc[-1].add_paragraph("This user function is used to load the fitted relaxation data out of a Bruker Dynamics Center (DC) file for the analyses in relax that use relaxation data. Currently the R1 and R2 relaxation rates and steady-state NOE data is supported. The peak intensity information in the file, which is used by the Dynamics Center to fit or calculate the relaxation values, will be discarded.")
65 uf.backend = bruker.read
66 uf.menu_text = "&read"
67 uf.gui_icon = "oxygen.actions.document-open"
68 uf.wizard_size = (800, 500)
69 uf.wizard_image = WIZARD_IMAGE_PATH + 'bruker.png'
70