mailr9699 - /branches/bmrb/bmrblib/kinetics/general_relaxation.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 09, 2009 - 16:15:
Author: bugman
Date: Fri Oct  9 16:15:00 2009
New Revision: 9699

URL: http://svn.gna.org/viewcvs/relax?rev=9699&view=rev
Log:
Updated the GeneralRelaxation saveframe to be more in the NMR-STAR v3.1 style.


Modified:
    branches/bmrb/bmrblib/kinetics/general_relaxation.py

Modified: branches/bmrb/bmrblib/kinetics/general_relaxation.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/bmrblib/kinetics/general_relaxation.py?rev=9699&r1=9698&r2=9699&view=diff
==============================================================================
--- branches/bmrb/bmrblib/kinetics/general_relaxation.py (original)
+++ branches/bmrb/bmrblib/kinetics/general_relaxation.py Fri Oct  9 16:15:00 
2009
@@ -234,11 +234,12 @@
         """
 
         # Execute the base class tag_setup() method.
-        TagCategory.tag_setup(self, tag_category_label=tag_category_label, 
sep=sep)
+        TagCategory.tag_setup(self, 
tag_category_label='General_Relaxation_list', sep=sep)
 
         # Tag names for the relaxation data.
-        self.tag_names['SfCategory'] = 'Saveframe_category'
-        self.tag_names['SampleConditionListLabel'] = 
'Sample_conditions_label'
+        self.tag_names['SfCategory'] = 'Sf_category'
+        self.tag_names['GeneralRelaxationListID'] = 'ID'
+        self.tag_names['SampleConditionListLabel'] = 
'Sample_condition_list_label'
         self.tag_names['SpectrometerFrequency1H'] = 
'Spectrometer_frequency_1H'
         self.tag_names['RxCoherenceType'] = 'Rx_coherence_type'
         self.tag_names['RxValUnits'] = 'Rx_value_units'
@@ -265,7 +266,7 @@
         """
 
         # Execute the base class tag_setup() method.
-        TagCategory.tag_setup(self, tag_category_label=tag_category_label, 
sep=sep)
+        TagCategory.tag_setup(self, 
tag_category_label='General_Relaxation_experiment', sep=sep)
 
         # Tag names for the relaxation data.
         self.tag_names['SampleLabel'] = 'Sample_label'
@@ -276,6 +277,18 @@
 
     def create(self):
         """Create the GeneralRelaxationSoftware tag category."""
+
+    def tag_setup(self, tag_category_label=None, sep=None):
+        """Replacement method for setting up the tag names.
+
+        @keyword tag_category_label:    The tag name prefix specific for the 
tag category.
+        @type tag_category_label:       None or str
+        @keyword sep:                   The string separating the tag name 
prefix and suffix.
+        @type sep:                      str
+        """
+
+        # Execute the base class tag_setup() method.
+        TagCategory.tag_setup(self, 
tag_category_label='General_Relaxation_software', sep=sep)
 
 
 class GeneralRelaxation(Rx):
@@ -314,7 +327,13 @@
         """
 
         # Execute the base class tag_setup() method.
-        Rx.tag_setup(self, tag_category_label=tag_category_label, sep=sep)
+        Rx.tag_setup(self, tag_category_label='General_Relaxation', sep=sep)
 
         # Tag names for the general relaxation data.
-        self.tag_names['GeneralRelaxationListID'] = 
'GeneralRelaxation_list_ID'
+        self.tag_names['RxID'] = 'ID'
+        self.tag_names['CompIndexID'] = 'Comp_index_ID'
+        self.tag_names['CompID'] = 'Comp_ID'
+        self.tag_names['AtomID'] = 'Atom_ID'
+        self.tag_names['Val'] = 'Val'
+        self.tag_names['ValErr'] = 'Val_err'
+        self.tag_names['GeneralRelaxationListID'] = 
'General_Relaxation_list_ID'




Related Messages


Powered by MHonArc, Updated Fri Oct 09 18:20:02 2009