| 1 | # This is an example script for the AUTO07p command line user |
| 2 | # interface. See the "Command Line User Interface" chapter in the |
| 3 | # manual for more details. |
| 4 | from auto import * |
| 5 | |
| 6 | def myRun(demoname): |
| 7 | |
| 8 | demo(demoname) |
| 9 | |
| 10 | r = run(demoname) |
| 11 | branchpoints = r("BP") |
| 12 | for solution in branchpoints: |
| 13 | bp = load(solution, ISW=-1, NTST=50) |
| 14 | # Compute forwards |
| 15 | print "Solution label", bp["LAB"], "forwards" |
| 16 | fw = run(bp) |
| 17 | # Compute backwards |
| 18 | print "Solution label", bp["LAB"], "backwards" |
| 19 | bw = run(bp,DS='-') |
| 20 | both = fw + bw |
| 21 | merged = merge(both) |
| 22 | r = r + merged |
| 23 | |
| 24 | r=relabel(r) |
| 25 | save(r, demoname) |
| 26 | plot(r) |
| 27 | wait() |