mailr11074 - /branches/bieri_gui/gui_bieri/controller.py


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

Header


Content

Posted by michael . bieri on April 13, 2010 - 06:44:
Author: michaelbieri
Date: Tue Apr 13 06:44:48 2010
New Revision: 11074

URL: http://svn.gna.org/viewcvs/relax?rev=11074&view=rev
Log:
The controller reads in current Monte Carlo simulation from status.py and 
updates the progress bar.

Modified:
    branches/bieri_gui/gui_bieri/controller.py

Modified: branches/bieri_gui/gui_bieri/controller.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/controller.py?rev=11074&r1=11073&r2=11074&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/controller.py (original)
+++ branches/bieri_gui/gui_bieri/controller.py Tue Apr 13 06:44:48 2010
@@ -192,11 +192,13 @@
 
         # Final analysis.
         elif self.status.dAuvergne_protocol.diff_model == 'final':
-            mc_simulation = self.status.mc_number
+            if self.status.mc_number:
+                progress = 100 * self.status.mc_number / cdp.sim_number
+                wx.CallAfter(self.out.progress_bar.SetValue, progress)
 
         # Rx Analysis.
-        else:
-            print str(cdp.sim_number)
+        #else:
+        #    print str(cdp.sim_number)
 
         # Add new output.
         wx.CallAfter(self.out.log_panel.AppendText, string)




Related Messages


Powered by MHonArc, Updated Tue Apr 13 07:00:02 2010