mailr14187 - /branches/gui_testing/gui/controller.py


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

Header


Content

Posted by edward on August 05, 2011 - 16:05:
Author: bugman
Date: Fri Aug  5 16:05:01 2011
New Revision: 14187

URL: http://svn.gna.org/viewcvs/relax?rev=14187&view=rev
Log:
The Monte Carlo simulation numbers actually start at 0, so the controller 
gauges are fixed a second time.


Modified:
    branches/gui_testing/gui/controller.py

Modified: branches/gui_testing/gui/controller.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/controller.py?rev=14187&r1=14186&r2=14187&view=diff
==============================================================================
--- branches/gui_testing/gui/controller.py (original)
+++ branches/gui_testing/gui/controller.py Fri Aug  5 16:05:01 2011
@@ -436,7 +436,7 @@
         # Monte Carlo simulations.
         if status.auto_analysis[key].mc_number:
             # The simulation number as a percentage.
-            percent = int(100 * status.auto_analysis[key].mc_number / 
cdp.sim_number)
+            percent = int(100 * (status.auto_analysis[key].mc_number + 1) / 
cdp.sim_number)
 
             # Update the progress bar.
             wx.CallAfter(self.mc_gauge_mf.SetValue, percent)
@@ -453,7 +453,7 @@
         # Monte Carlo simulations.
         if status.auto_analysis[key].mc_number:
             # The simulation number as a percentage.
-            percent = int(100 * status.auto_analysis[key].mc_number / 
cdp.sim_number)
+            percent = int(100 * (status.auto_analysis[key].mc_number + 1) / 
cdp.sim_number)
 
             # Update the progress bar.
             wx.CallAfter(self.mc_gauge_rx.SetValue, percent)




Related Messages


Powered by MHonArc, Updated Fri Aug 05 17:00:02 2011