1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 """The module for the reduced spectral density mapping parameter list object."""
26
27
28 from lib.physical_constants import N15_CSA
29 from specific_analyses.parameter_object import Param_list
30
31
33 """The reduced spectral density mapping parameter list singleton."""
34
35
36 _instance = None
37
39 """Define all the parameters of the analysis."""
40
41
42 if self._initialised: return
43
44
45 Param_list.__init__(self)
46
47
48 self._add_csa(default=N15_CSA)
49
50
51 self._add(
52 'j0',
53 scope = 'spin',
54 string = 'J(0)',
55 desc = 'Spectral density value at 0 MHz - J(0)',
56 py_type = float,
57 set = 'params',
58 grace_string = '\\qJ(0)\\Q',
59 err = True,
60 sim = True
61 )
62 self._add(
63 'jwx',
64 scope = 'spin',
65 string = 'J(wX)',
66 desc = 'Spectral density value at the frequency of the heteronucleus - J(wX)',
67 py_type = float,
68 set = 'params',
69 grace_string = '\\qJ(\\xw\\f{}\\sX\\N)\\Q',
70 err = True,
71 sim = True
72 )
73 self._add(
74 'jwh',
75 scope = 'spin',
76 string = 'J(wH)',
77 desc = 'Spectral density value at the frequency of the proton - J(wH)',
78 py_type = float,
79 set = 'params',
80 grace_string = '\\qJ(\\xw\\f{}\\sH\\N)\\Q',
81 err = True,
82 sim = True
83 )
84
85
86 self._set_uf_title("Reduced spectral density mapping parameters")
87 self._uf_param_table(label="table: J(w) parameters", caption="Reduced spectral density mapping parameters.")
88 self._uf_param_table(label="table: J(w) parameter value setting", caption="Reduced spectral density mapping parameters.")
89 self._uf_param_table(label="table: J(w) parameter value setting with defaults", caption="Reduced spectral density mapping parameter value setting.", default=True)
90
91
92 for doc in self._uf_doc_loop(["table: J(w) parameter value setting", "table: J(w) parameter value setting with defaults"]):
93 doc.add_paragraph("In reduced spectral density mapping, the CSA value must be set prior to the calculation of spectral density values.")
94