mailr12869 - /1.3/gui/analyses/auto_rx_base.py


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

Header


Content

Posted by michael . bieri on June 07, 2011 - 04:29:
Author: michaelbieri
Date: Tue Jun  7 04:29:04 2011
New Revision: 12869

URL: http://svn.gna.org/viewcvs/relax?rev=12869&view=rev
Log:
Peak lists and relaxation delays are synchronized with relax data storage.

Modified:
    1.3/gui/analyses/auto_rx_base.py

Modified: 1.3/gui/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_rx_base.py?rev=12869&r1=12868&r2=12869&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_rx_base.py (original)
+++ 1.3/gui/analyses/auto_rx_base.py Tue Jun  7 04:29:04 2011
@@ -731,4 +731,32 @@
             self.field_unresolved.SetValue(str(self.data.unresolved))
 
         # The peak lists and relaxation times.
-        self.peak_intensity.sync_ds(upload)
+        # Sync peaklist and relaxation time
+        self.sync_peaklist()
+        #Sync
+        if upload:
+            # Peak list
+            self.data.file_list = self.peakfiles
+            # Relaxation time
+            self.data.relax_times = self.rxtimes
+        else:
+            if hasattr(self.data, 'file_list'):
+                self.peakfiles = self.data.file_list
+            if hasattr(self.data, 'relax_times'):
+                self.rxtimes = self.data.relax_times
+
+
+    def sync_peaklist(self):
+        """Fucntion to read and store peaklists and relaxation times."""
+
+        # Containers
+        self.peakfiles = []
+        self.rxtimes = []
+
+        # read entries in data grid
+        for i in range(self.pk_list):
+            # Store peaklist
+            self.peakfiles.append(str(self.peaklist.GetCellValue(i, 0)))
+
+            # Store relaxation time
+            self.rxtimes.append(str(self.peaklist.GetCellValue(i, 1)))




Related Messages


Powered by MHonArc, Updated Tue Jun 07 06:20:02 2011