/[escript]/trunk/pyvisi_old/examples/runall
ViewVC logotype

Contents of /trunk/pyvisi_old/examples/runall

Parent Directory Parent Directory | Revision Log Revision Log


Revision 786 - (show annotations)
Tue Jul 25 04:58:05 2006 UTC (13 years, 1 month ago) by gross
File size: 1308 byte(s)
switched off pyvisi
1 #!/usr/bin/env python
2 #
3 # run all of the examples
4 #
5 # $Id: runall,v 1.11 2005/11/30 04:27:47 paultcochrane Exp $
6
7 # process arguments if any
8 import sys
9 numArgs = len(sys.argv)
10 if numArgs == 1:
11 renderer = "vtk"
12 else:
13 renderer = sys.argv[1]
14
15 # the list of files to process
16 Files = (
17 "arrowPlot.py",
18 "arrowPlot2D.py",
19 "arrowPlot3D.py",
20 "ballPlot.py",
21 "contourPlot.py",
22 #"contourPlotMovie.py",
23 "ellipsoidPlot.py",
24 "isosurfacePlot.py",
25 "meshPlot.py",
26 "multiCurveLinePlot.py",
27 "offsetLinePlot.py",
28 "offsetPlot.py",
29 "randomLinePlot.py",
30 "seismicOffsetPlot1.py",
31 "seismicOffsetPlot2.py",
32 "seismicOffsetPlot3.py",
33 "simpleLinePlot.py",
34 #"simpleLinePlotMovie.py",
35 "singleArrayLinePlot.py",
36 "surfaceAndContourPlot.py",
37 "surfacePlot.py",
38 "scatterPlot.py",
39 "scatterPlot3D.py",
40 )
41
42 print "Running all examples"
43
44 # run the examples
45 import os
46 err = open("runall.errs", "w")
47 for file in Files:
48 print ""
49 print 70*"#"
50 print "Running %s" % file
51 print 70*"#"
52 print ""
53 result = os.system("python %s %s" % (file,renderer) )
54 if result != 0:
55 print "Error running example script: %s" % file
56 err.write("Error running example script: %s\n" % file)
57
58 err.close()
59
60 # vim: expandtab shiftwidth=4:

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26