Hi, As this redirection is often enabled and disabled for debugging purposes, maybe it's better to have a permanent flag sent into the method (e.g. the arg 'redirect=True') and just set that to False when needed. The turning on and off of IO redirection then would be simpler and you won't need to commit it. Regards, Edward On 14 March 2010 23:04, <michael.bieri@xxxxxx> wrote:
Author: michaelbieri Date: Sun Mar 14 23:04:03 2010 New Revision: 10991 URL: http://svn.gna.org/viewcvs/relax?rev=10991&view=rev Log: Redirection of system output to relaxGUI controller is temporarly disabled for automatic model-free calculation. This is done to find the error causing relaxGUI to crash in final analysis, as discussed here: https://gna.org/task/?6847#comment40. Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Modified: branches/bieri_gui/gui_bieri/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_model_free.py?rev=10991&r1=10990&r2=10991&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/analyses/auto_model_free.py (original) +++ branches/bieri_gui/gui_bieri/analyses/auto_model_free.py Sun Mar 14 23:04:03 2010 @@ -619,7 +619,7 @@ which_model = self.choose_global_model(False) # Display the relax controller. - self.gui.controller.Show() + #self.gui.controller.Show() # Solve for all global models. if which_model == 'full': @@ -813,6 +813,9 @@ @type global_model: str """ + # Combine Parameters. + model = global_model + # Assemble all the data needed for the dAuvergne_protocol class. data = self.assemble_data() @@ -820,9 +823,9 @@ self.gui.calc_threads[-1].progress = 5.0 # 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. wx.CallAfter(self.gui.controller.log_panel.AppendText, ('Starting Model-free calculation\n------------------------------------------\n\n') ) _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@xxxxxxx To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits