| 1 |
from auto import * |
| 2 |
|
| 3 |
def myRun(demoname): |
| 4 |
|
| 5 |
demo(demoname) |
| 6 |
|
| 7 |
r = run(demoname) |
| 8 |
branchpoints = r("BP") |
| 9 |
for solution in branchpoints: |
| 10 |
bp = load(solution, ISW=-1, NTST=50) |
| 11 |
# Compute forwards |
| 12 |
print "Solution label", bp["LAB"], "forwards" |
| 13 |
fw = run(bp) |
| 14 |
# Compute backwards |
| 15 |
print "Solution label", bp["LAB"], "backwards" |
| 16 |
bw = run(bp,DS='-') |
| 17 |
both = fw + bw |
| 18 |
merged = merge(both) |
| 19 |
r = r + merged |
| 20 |
|
| 21 |
r=relabel(r) |
| 22 |
save(r, demoname) |
| 23 |
plot(r) |
| 24 |
wait() |
| 25 |
|
| 26 |
myRun('bvp') |