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_fit', 
 70      'residue', 
 71      'reset', 
 72      'results', 
 73      'script', 
 74      'select', 
 75      'sequence', 
 76      'spectrometer', 
 77      'spectrum', 
 78      'spin', 
 79      'state', 
 80      'structure', 
 81      'sys_info', 
 82      'value', 
 83      'vmd' 
 84  ] 
 85   
 86   
87 -def initialise():
88 """Initialise all of the user function definitions by importing then validating them.""" 89 90 # Import all the modules to set up the data. 91 import user_functions.align_tensor 92 import user_functions.angles 93 import user_functions.bmrb 94 import user_functions.bruker 95 import user_functions.chemical_shift 96 import user_functions.consistency_tests 97 import user_functions.dasha 98 import user_functions.deselect 99 import user_functions.diffusion_tensor 100 import user_functions.domain 101 import user_functions.dx 102 import user_functions.eliminate 103 import user_functions.fix 104 import user_functions.frame_order 105 import user_functions.grace 106 import user_functions.interatom 107 import user_functions.j_coupling 108 import user_functions.jw_mapping 109 import user_functions.minimisation 110 import user_functions.model_free 111 import user_functions.model_selection 112 import user_functions.molecule 113 import user_functions.molmol 114 import user_functions.monte_carlo 115 import user_functions.n_state_model 116 import user_functions.noe 117 import user_functions.palmer 118 import user_functions.paramag 119 import user_functions.pcs 120 import user_functions.pipe 121 import user_functions.pymol_control 122 import user_functions.rdc 123 import user_functions.relax_data 124 import user_functions.relax_fit 125 import user_functions.residue 126 import user_functions.reset 127 import user_functions.results 128 import user_functions.script 129 import user_functions.select 130 import user_functions.sequence 131 import user_functions.spectrometer 132 import user_functions.spectrum 133 import user_functions.spin 134 import user_functions.state 135 import user_functions.structure 136 import user_functions.sys_info 137 import user_functions.value 138 import user_functions.vmd 139 140 # Import the data structure. 141 from user_functions.data import Uf_info; uf_info = Uf_info() 142 143 # Check the validity of the data. 144 uf_info.validate()
145