/[ascend]/trunk/models/johnpye/solve.py
ViewVC logotype

Contents of /trunk/models/johnpye/solve.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 930 - (show annotations) (download) (as text)
Wed Nov 22 13:09:09 2006 UTC (17 years, 9 months ago) by johnpye
File MIME type: text/x-python
File size: 328 byte(s)
solve.py raises ImportError if 'browser' object is not available (right approach?)
Freeing some variables in dsgsat2.a4c.
Returing Py_None from extpy routine in 'browser' object not defined (eg during non-GUI unit testing)
Error reporting from extpy import handler (ongoing)
Timeout in versioncheck (when server unavailable)
A little more tinkering with IDA.
1 from solverreporter import *
2 import extpy
3 browser = extpy.getbrowser()
4 if browser==None:
5 raise ImportError
6
7 def solve(self):
8 """ run the active solver on the current model (reporting to the status bar only) """
9 browser.sim.build()
10 browser.sim.solve(browser.solver,SimpleSolverReporter(browser))
11
12 extpy.registermethod(solve)

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