Author: bugman Date: Mon Aug 8 11:16:13 2011 New Revision: 14251 URL: http://svn.gna.org/viewcvs/relax?rev=14251&view=rev Log: Removed a pile of debugging code. Modified: branches/gui_testing/gui/analyses/__init__.py Modified: branches/gui_testing/gui/analyses/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=14251&r1=14250&r2=14251&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/__init__.py (original) +++ branches/gui_testing/gui/analyses/__init__.py Mon Aug 8 11:16:13 2011 @@ -74,7 +74,6 @@ self.init_state = True self._current = None self._num_analyses = 0 - sys.stderr.write("self._num_analyses (__init__): %s\n" % self._num_analyses) self._switch_flag = True # The analyses page objects. @@ -127,9 +126,6 @@ return # Return the name. - if self._current >= len(ds.relax_gui.analyses): - sys.stderr.write("self._current = %s\n" % self._current) - sys.stderr.write("ds.relax_gui.analyses: \n%s\n" % ds.relax_gui.analyses) return ds.relax_gui.analyses[self._current] @@ -170,7 +166,6 @@ while self._num_analyses: # Remove the last analysis, until there is nothing left. self.delete_analysis(self._num_analyses-1) - sys.stderr.write("self._num_analyses (delete_all): %s\n" % self._num_analyses) # Notify the observers of the change. status.observers.gui_analysis.notify() @@ -192,7 +187,6 @@ # Delete the data store object. ds.relax_gui.analyses.pop(index) - sys.stderr.write("ds.relax_gui.analyses.pop(%s)\n" % index) # Delete the tab. self.notebook.DeletePage(index) @@ -202,7 +196,6 @@ # Decrement the number of analyses. self._num_analyses -= 1 - sys.stderr.write("self._num_analyses (delete_analysis): %s\n" % self._num_analyses) # The current page has been deleted, so switch one back (if possible). if index == self._current and self._current != 0: @@ -423,7 +416,6 @@ # Increment the number of analyses. self._num_analyses += 1 - sys.stderr.write("self._num_analyses (new_analysis): %s\n" % self._num_analyses) # Switch to the new page. if self._switch_flag: @@ -486,10 +478,6 @@ index = None for i in range(self._num_analyses): # Matching page. - if i > len(ds.relax_gui.analyses) or not hasattr(ds.relax_gui.analyses[i], 'pipe_name'): - sys.stderr.write("%s\n" % self._num_analyses) - sys.stderr.write("%s\n" % ds.relax_gui.analyses) - sys.stderr.write("%s\n" % ds.relax_gui.analyses[i]) if ds.relax_gui.analyses[i].pipe_name == pipe: index = i break @@ -563,7 +551,6 @@ # Decrement the number of analyses. self._num_analyses -= 1 - sys.stderr.write("self._num_analyses (post_reset): %s\n" % self._num_analyses) # Set the initial state. self.set_init_state()