Package user_functions
[hide private]
[frames] | no frames]

Source Code for Package user_functions

  1  ############################################################################### 
  2  #                                                                             # 
  3  # Copyright (C) 2012-2013 Edward d'Auvergne                                   # 
  4  #                                                                             # 
  5  # This file is part of the program relax (http://www.nmr-relax.com).          # 
  6  #                                                                             # 
  7  # This program is free software: you can redistribute it and/or modify        # 
  8  # it under the terms of the GNU General Public License as published by        # 
  9  # the Free Software Foundation, either version 3 of the License, or           # 
 10  # (at your option) any later version.                                         # 
 11  #                                                                             # 
 12  # This program is distributed in the hope that it will be useful,             # 
 13  # but WITHOUT ANY WARRANTY; without even the implied warranty of              # 
 14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               # 
 15  # GNU General Public License for more details.                                # 
 16  #                                                                             # 
 17  # You should have received a copy of the GNU General Public License           # 
 18  # along with this program.  If not, see <http://www.gnu.org/licenses/>.       # 
 19  #                                                                             # 
 20  ############################################################################### 
 21   
 22  # Package docstring. 
 23  """Package containing all of the user function details. 
 24   
 25  This package contains all information and details about user functions, from documentation to icons to be used in the GUI.  This package contains a special data structure which will be used by the different UIs to automatically generate their interfaces to the user functions. 
 26  """ 
 27   
 28  # The __all__ package list (main modules). 
 29  __all__ = [ 
 30      'data', 
 31      'objects' 
 32  ] 
 33   
 34  # The __all__ package list (user function modules). 
 35  __all__ += [ 
 36      'align_tensor', 
 37      'angles', 
 38      'bmrb', 
 39      'bruker', 
 40      'chemical_shift', 
 41      'consistency_tests', 
 42      'dasha', 
 43      'deselect', 
 44      'diffusion_tensor', 
 45      'domain', 
 46      'dx', 
 47      'eliminate', 
 48      'fix', 
 49      'frame_order', 
 50      'grace', 
 51      'interatom', 
 52      'j_coupling', 
 53      'jw_mapping', 
 54      'minimisation', 
 55      'model_free', 
 56      'model_selection', 
 57      'molecule', 
 58      'molmol', 
 59      'monte_carlo', 
 60      'n_state_model', 
 61      'noe', 
 62      'palmer', 
 63      'paramag', 
 64      'pcs', 
 65      'pipe', 
 66      'pymol_control', 
 67      'rdc', 
 68      'relax_data', 
 69      'relax_disp', 
 70      'relax_fit', 
 71      'residue', 
 72      'reset', 
 73      'results', 
 74      'script', 
 75      'select', 
 76      'sequence', 
 77      'spectrometer', 
 78      'spectrum', 
 79      'spin', 
 80      'state', 
 81      'structure', 
 82      'sys_info', 
 83      'wildcards', 
 84      'value', 
 85      'vmd' 
 86  ] 
 87   
 88   
89 -def initialise():
90 """Initialise all of the user function definitions by importing then validating them.""" 91 92 # Import all the modules to set up the data. 93 import user_functions.align_tensor 94 import user_functions.angles 95 import user_functions.bmrb 96 import user_functions.bruker 97 import user_functions.chemical_shift 98 import user_functions.consistency_tests 99 import user_functions.dasha 100 import user_functions.deselect 101 import user_functions.diffusion_tensor 102 import user_functions.domain 103 import user_functions.dx 104 import user_functions.eliminate 105 import user_functions.fix 106 import user_functions.frame_order 107 import user_functions.grace 108 import user_functions.interatom 109 import user_functions.j_coupling 110 import user_functions.jw_mapping 111 import user_functions.minimisation 112 import user_functions.model_free 113 import user_functions.model_selection 114 import user_functions.molecule 115 import user_functions.molmol 116 import user_functions.monte_carlo 117 import user_functions.n_state_model 118 import user_functions.noe 119 import user_functions.palmer 120 import user_functions.paramag 121 import user_functions.pcs 122 import user_functions.pipe 123 import user_functions.pymol_control 124 import user_functions.rdc 125 import user_functions.relax_data 126 import user_functions.relax_disp 127 import user_functions.relax_fit 128 import user_functions.residue 129 import user_functions.reset 130 import user_functions.results 131 import user_functions.script 132 import user_functions.select 133 import user_functions.sequence 134 import user_functions.spectrometer 135 import user_functions.spectrum 136 import user_functions.spin 137 import user_functions.state 138 import user_functions.structure 139 import user_functions.sys_info 140 import user_functions.value 141 import user_functions.vmd 142 143 # Import the data structure. 144 from user_functions.data import Uf_info; uf_info = Uf_info() 145 146 # Check the validity of the data. 147 uf_info.validate()
148