Graphical block debugging

From ASCEND
Revision as of 13:25, 13 May 2010 by UploadBot (talk | contribs) (Restored page from Google Cache, uploaded by John Pye)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This page documents an experimental feature. You can help out by testing it and recording your experiences.

Some progress has been made on this, with the addition of a method in the system directory called system_write_graph. This method should output the incidence between a filtered set of variables and relations.

<img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" />
Graph of the relationship between variables and relations in the models/johnpye/lotka.a4c example. The graph is drawn using GraphViz.

At present this functionality is available from the Python API as shown:

L=ascpy.Library()
L.load('johnpye/lotka.a4c')
M = self.L.findType('lotka').getSimulation('sim')

M.build()
f = file('lotka.png','w')
M.write(f,&quot;dot&quot;)

f.close()

The file lotka.png can then be viewed in your preferred graphics viewer.

Some preliminary work at integrating these graphics into the PyGTK has been made, see Incidence Graph.