Last change
on this file since 7340 was
5197,
checked in by jack, 17 years ago
|
Updated new visualiser to use cProfile.
|
-
Property svn:executable set to
*
|
File size:
474 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | from sww_visualiser import SWWVisualiser |
---|
3 | from height_quantity import HeightQuantity |
---|
4 | |
---|
5 | vis = SWWVisualiser(source='../../anuga_viewer/tests/cylinders.sww', recording=False, recordPattern='%02d.png') |
---|
6 | vis.add_feature(HeightQuantity('elevation')) |
---|
7 | vis.add_feature(HeightQuantity('stage', dynamic=True, #colour=(lambda q:q['stage'], 0.0, 10.0), offset=-0.01)) |
---|
8 | colour=(0.0, 0.0, 0.8))) |
---|
9 | |
---|
10 | import cProfile |
---|
11 | cProfile.run('vis.run()') |
---|
Note: See
TracBrowser
for help on using the repository browser.