Package bmrblib :: Package kinetics :: Module auto_relaxation_v3_1
[hide private]
[frames] | no frames]

Source Code for Module bmrblib.kinetics.auto_relaxation_v3_1

  1  ############################################################################# 
  2  #                                                                           # 
  3  # The BMRB library.                                                         # 
  4  #                                                                           # 
  5  # Copyright (C) 2009-2011 Edward d'Auvergne                                 # 
  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  # Module docstring. 
 23  """The v3.1 Auto relaxation data saveframe category. 
 24   
 25  See http://www.bmrb.wisc.edu/dictionary/3.1html/SaveFramePage.html#auto_relaxation. 
 26  """ 
 27   
 28  # relax module imports. 
 29  from bmrblib.kinetics.auto_relaxation import AutoRelaxationSaveframe, AutoRelaxationList, AutoRelaxationExperiment, AutoRelaxationSoftware, AutoRelaxation 
 30   
 31   
32 -class AutoRelaxationSaveframe_v3_1(AutoRelaxationSaveframe):
33 """The v3.1 Auto relaxation data saveframe class.""" 34 35 # Class variables. 36 name = 'auto' 37 sf_label = 'auto_relaxation' 38
39 - def add_tag_categories(self):
40 """Create the v3.1 tag categories.""" 41 42 # The tag category objects. 43 self.tag_categories.append(AutoRelaxationList_v3_1(self)) 44 self.tag_categories.append(AutoRelaxationExperiment_v3_1(self)) 45 self.tag_categories.append(AutoRelaxationSoftware_v3_1(self)) 46 self.tag_categories.append(AutoRelaxation_v3_1(self))
47 48 49
50 -class AutoRelaxationList_v3_1(AutoRelaxationList):
51 """v3.1 AutoRelaxationList tag category.""" 52
53 - def __init__(self, sf):
54 """Setup the AutoRelaxationList_v3_1 tag category. 55 56 @param sf: The saveframe object. 57 @type sf: saveframe instance 58 """ 59 60 # Initialise the baseclass. 61 super(AutoRelaxationList_v3_1, self).__init__(sf) 62 63 # The category name. 64 self.tag_category_label = 'Auto_relaxation_list' 65 66 # Change tag names. 67 self['SfCategory'].tag_name = 'Sf_category' 68 self['SfFramecode'].tag_name = 'Sf_framecode' 69 self['EntryID'].tag_name = 'Entry_ID' 70 self['AutoRelaxationListID'].tag_name = 'ID' 71 self['DataFileName'].tag_name = 'Data_file_name' 72 self['SampleConditionListID'].tag_name = 'Sample_condition_list_ID' 73 self['SampleConditionListLabel'].tag_name = 'Sample_condition_list_label' 74 self['TempCalibrationMethod'].tag_name = 'Temp_calibration_method' 75 self['TempControlMethod'].tag_name = 'Temp_control_method' 76 self['SpectrometerFrequency1H'].tag_name = 'Spectrometer_frequency_1H' 77 self['CommonRelaxationTypeName'].tag_name = 'Common_relaxation_type_name' 78 self['RelaxationCoherenceType'].tag_name = 'Relaxation_coherence_type' 79 self['RelaxationValUnits'].tag_name = 'Relaxation_val_units' 80 self['RelaxationValType'].tag_name = 'Relaxation_val_type' 81 self['RexUnits'].tag_name = 'Rex_units' 82 self['Details'].tag_name = 'Details' 83 self['TextDataFormat'].tag_name = 'Text_data_format' 84 self['TextData'].tag_name = 'Text_data'
85 86 87
88 -class AutoRelaxationExperiment_v3_1(AutoRelaxationExperiment):
89 """v3.1 AutoRelaxationExperiment tag category.""" 90
91 - def __init__(self, sf):
92 """Setup the AutoRelaxationExperiment_v3_1 tag category. 93 94 @param sf: The saveframe object. 95 @type sf: saveframe instance 96 """ 97 98 # Initialise the baseclass. 99 super(AutoRelaxationExperiment_v3_1, self).__init__(sf) 100 101 # The category name. 102 self.tag_category_label = 'Auto_relaxation_experiment' 103 104 # Change tag names. 105 self['ExperimentID'].tag_name = 'Experiment_ID' 106 self['ExperimentName'].tag_name = 'Experiment_name' 107 self['SampleID'].tag_name = 'Sample_ID' 108 self['SampleLabel'].tag_name = 'Sample_label' 109 self['SampleState'].tag_name = 'Sample_state' 110 self['EntryID'].tag_name = 'Entry_ID' 111 self['AutoRelaxationListID'].tag_name = 'Auto_relaxation_list_ID'
112 113 114
115 -class AutoRelaxationSoftware_v3_1(AutoRelaxationSoftware):
116 """v3.1 AutoRelaxationSoftware tag category.""" 117
118 - def __init__(self, sf):
119 """Setup the AutoRelaxationSoftware_v3_1 tag category. 120 121 @param sf: The saveframe object. 122 @type sf: saveframe instance 123 """ 124 125 # Initialise the baseclass. 126 super(AutoRelaxationSoftware_v3_1, self).__init__(sf) 127 128 # The category name. 129 self.tag_category_label = 'Auto_relaxation_software' 130 131 # Change tag names. 132 self['SoftwareID'].tag_name = 'Software_ID' 133 self['SoftwareLabel'].tag_name = 'Software_label' 134 self['MethodID'].tag_name = 'Method_ID' 135 self['MethodLabel'].tag_name = 'Method_label' 136 self['EntryID'].tag_name = 'Entry_ID' 137 self['AutoRelaxationListID'].tag_name = 'Auto_relaxation_list_ID'
138 139 140
141 -class AutoRelaxation_v3_1(AutoRelaxation):
142 """v3.1 AutoRelaxation tag category.""" 143
144 - def __init__(self, sf):
145 """Setup the AutoRelaxation_v3_1 tag category. 146 147 @param sf: The saveframe object. 148 @type sf: saveframe instance 149 """ 150 151 # Initialise the baseclass. 152 super(AutoRelaxation_v3_1, self).__init__(sf) 153 154 # The category name. 155 self.tag_category_label = 'Auto_relaxation' 156 157 # Change tag names. 158 self['AutoRelaxationID'].tag_name = 'ID' 159 self['AssemblyID'].tag_name = 'Assembly_ID' 160 self['AssemblyAtomID'].tag_name = 'Assembly_atom_ID' 161 self['EntityAssemblyID'].tag_name = 'Entity_assembly_ID' 162 self['EntityID'].tag_name = 'Entity_ID' 163 self['CompIndexID'].tag_name = 'Comp_index_ID' 164 self['SeqID'].tag_name = 'Seq_ID' 165 self['CompID'].tag_name = 'Comp_ID' 166 self['AtomID'].tag_name = 'Atom_ID' 167 self['AtomType'].tag_name = 'Atom_type' 168 self['AtomIsotopeNumber'].tag_name = 'Atom_isotope_number' 169 self['Val'].tag_name = 'Auto_relaxation_val' 170 self['ValErr'].tag_name = 'Auto_relaxation_val_err' 171 self['RexVal'].tag_name = 'Rex_val' 172 self['RexErr'].tag_name = 'Rex_err' 173 self['ResonanceID'].tag_name = 'Resonance_ID' 174 self['AuthEntityAssemblyID'].tag_name = 'Auth_entity_assembly_ID' 175 self['AuthSeqID'].tag_name = 'Auth_seq_ID' 176 self['AuthCompID'].tag_name = 'Auth_comp_ID' 177 self['AuthAtomID'].tag_name = 'Auth_atom_ID' 178 self['EntryID'].tag_name = 'Entry_ID' 179 self['AutoRelaxationListID'].tag_name = 'Auto_relaxation_list_ID'
180