mailr10903 - /branches/bieri_gui/gui_bieri/analyses/auto_noe.py


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

Header


Content

Posted by michael . bieri on February 24, 2010 - 06:12:
Author: michaelbieri
Date: Wed Feb 24 06:12:15 2010
New Revision: 10903

URL: http://svn.gna.org/viewcvs/relax?rev=10903&view=rev
Log:
Function to load saturated NOE peak list was added.


Modified:
    branches/bieri_gui/gui_bieri/analyses/auto_noe.py

Modified: branches/bieri_gui/gui_bieri/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_noe.py?rev=10903&r1=10902&r2=10903&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_noe.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_noe.py Wed Feb 24 06:12:15 2010
@@ -588,6 +588,30 @@
         event.Skip()
 
 
+    def sat_file(self, event):
+        """The results directory selection.
+
+        @param event:   The wx event.
+        @type event:    wx event
+        """
+
+        # Store the original directory.
+        backup = self.field_sat_noe.GetValue()
+
+        # Select the file.
+        self.data.sat_file = openfile('Select saturated NOE peak list', 
directory=self.field_sat_noe.GetValue(), default = 'all files (*.*)|*.*')
+
+        # Restore the backup file if no file was chosen.
+        if not self.data.sat_file:
+            self.data.sat_file = backup
+
+        # Place the path in the text box.
+        self.field_sat_noe.SetValue(self.data.sat_file)
+
+        # Terminate the event.
+        event.Skip()
+
+
     def sync_ds(self, upload=False):
         """Synchronise the rx analysis frame and the relax data store, both 
ways.
 




Related Messages


Powered by MHonArc, Updated Wed Feb 24 06:20:02 2010