Package functions :: Module d2jw_srls
[hide private]
[frames] | no frames]

Source Code for Module functions.d2jw_srls

 1  from re import match 
 2   
3 -class d2Jw:
4 - def __init__(self):
5 "Function for creating the SRLS spectral density hessians."
6 7
8 - def d2Jw(self):
9 """Function to create SRLS spectral density hessians. 10 11 The spectral density hessians 12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 14 Data structure: self.data.d2jw 15 Dimension: 4D, (number of NMR frequencies, 5 spectral density frequencies, model-free parameters, model-free parameters) 16 Type: Numeric 4D matrix, Float64 17 Dependencies: None 18 Required by: self.data.d2ri 19 20 21 Formulae 22 ~~~~~~~~ 23 24 """ 25 26 # Initialise the spectral density hessians. 27 self.data.d2jw = zeros((self.mf.data.num_frq, 5, len(self.data.params), len(self.data.params)), Float64) 28 29 # Isotropic rotational diffusion. 30 if match(self.data.diff_type, 'iso'): 31 raise NameError, "No code yet." 32 33 # Axially symmetric rotational diffusion. 34 elif match(self.data.diff_type, 'axail'): 35 raise NameError, "Axially symetric diffusion not implemented yet, quitting program." 36 37 # Anisotropic rotational diffusion. 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