/[ascend]/trunk/pygtk/integrator.py
ViewVC logotype

Diff of /trunk/pygtk/integrator.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 960 by johnpye, Wed Oct 25 07:35:39 2006 UTC revision 961 by johnpye, Mon Dec 11 14:04:13 2006 UTC
# Line 201  class IntegratorWindow: Line 201  class IntegratorWindow:
201    
202          self.prefs.setStringPref("Integrator","engine",self.engines.values()[engine])          self.prefs.setStringPref("Integrator","engine",self.engines.values()[engine])
203    
204          _res = self.integrator.setEngine(self.engines.keys()[engine])          try:
205          if not _res:              _res = self.integrator.setEngine(self.engines.keys()[engine])          
206              raise IntegratorError("Invalid engine selected")          except IndexError,e:
207                            raise IntegratorERror("Unable to set engine: %s",e)

Legend:
Removed from v.960  
changed lines
  Added in v.961

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22