mailr11365 - /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 July 27, 2010 - 08:42:
Author: michaelbieri
Date: Tue Jul 27 08:42:33 2010
New Revision: 11365

URL: http://svn.gna.org/viewcvs/relax?rev=11365&view=rev
Log:
Bugfix for status = None in medel selection.

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=11365&r1=11364&r2=11365&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/controller.py (original)
+++ branches/bieri_gui/gui_bieri/controller.py Tue Jul 27 08:42:33 2010
@@ -175,15 +175,16 @@
         # Update Gauge (Progress bar).
         # Local tm model:
         if self.status.dAuvergne_protocol.diff_model == 'local_tm':
-            # Current model.
-            no = self.status.dAuvergne_protocol.current_model[2:]
-            no = int(no)
-
-            # Total selected models.
-            total_models = 
len(self.status.dAuvergne_protocol.local_tm_models)
-
-            # update Progress bar.
-            wx.CallAfter(self.out.progress_bar.SetValue, 
(100*no/total_models))
+            if self.status.dAuvergne_protocol.current_model:
+                # Current model.
+                no = self.status.dAuvergne_protocol.current_model[2:]
+                no = int(no)
+
+                # Total selected models.
+                total_models = 
len(self.status.dAuvergne_protocol.local_tm_models)
+
+                # update Progress bar.
+                wx.CallAfter(self.out.progress_bar.SetValue, 
(100*no/total_models))
 
         # Sphere to Ellipsoid Models.
         elif self.status.dAuvergne_protocol.diff_model in ['sphere', 
'prolate', 'oblate', 'ellipsoid']:




Related Messages


Powered by MHonArc, Updated Tue Jul 27 10:20:02 2010