1 from re import match
2
5 "Function for creating the SRLS spectral density gradients."
6
7
9 """Function to create SRLS spectral density gradients.
10
11 The spectral density gradients
12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13
14 Data structure: self.data.djw
15 Dimension: 3D, (number of NMR frequencies, 5 spectral density frequencies, model-free parameters)
16 Type: Numeric 3D matrix, Float64
17 Dependencies: None
18 Required by: self.data.dri, self.data.d2ri
19
20
21 Formulae
22 ~~~~~~~~
23
24 """
25
26
27 self.data.djw = zeros((self.mf.data.num_frq, 5, len(self.data.params)), Float64)
28
29
30 if match(self.data.diff_type, 'iso'):
31 raise NameError, "No code yet."
32
33
34 elif match(self.data.diff_type, 'axail'):
35 raise NameError, "Axially symetric diffusion not implemented yet, quitting program."
36
37
38 elif match(self.data.diff_type, 'aniso'):
39 raise NameError, "Anisotropic diffusion not implemented yet, quitting program."
40
41 else:
42 raise NameError, "Function option not set correctly, quitting program."
43