mailr11112 - /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 April 22, 2010 - 06:19:
Author: michaelbieri
Date: Thu Apr 22 06:19:33 2010
New Revision: 11112

URL: http://svn.gna.org/viewcvs/relax?rev=11112&view=rev
Log:
relaxGUI controller is activated and displays feedback upon successful noe 
calculation.

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=11112&r1=11111&r2=11112&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_noe.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_noe.py Thu Apr 22 06:19:33 2010
@@ -500,9 +500,9 @@
         """Execute the calculation in a thread."""
 
         # Redirect relax output and errors to the controller.
-        #redir = Redirect_text(self.gui.controller)
-        #sys.stdout = redir
-        #sys.stderr = redir
+        redir = Redirect_text(self.gui.controller)
+        sys.stdout = redir
+        sys.stderr = redir
 
         # Print a header in the controller.
         header = 'Starting NOE calculation'
@@ -516,6 +516,9 @@
         # Execute.
         NOE_calc(filename=data.filename, seq_args=data.seq_args, 
pipe_name='noe', noe_ref=data.ref_file, noe_ref_rmsd=data.ref_rmsd, 
noe_sat=data.sat_file, noe_sat_rmsd=data.sat_rmsd, 
unresolved=data.unresolved, pdb_file=data.structure_file, 
results_folder=data.save_dir, int_method='height', heteronuc = 'N', proton = 
'H')
 
+        # Feedback about success.
+        wx.CallAfter(self.gui.controller.log_panel.AppendText, 
'\n\n__________________________________________________________\n\nSuccessfully
 calculated NOE 
values\n__________________________________________________________')
+
 
     def link_data(self, data):
         """Re-alias the storage container in the relax data store.




Related Messages


Powered by MHonArc, Updated Thu Apr 22 06:40:03 2010