| |
1 #!/bin/sh |
| |
2 |
| |
3 iters=5000 |
| |
4 |
| |
5 set -e |
| |
6 |
| |
7 for f in "$@"; do |
| |
8 if ! test -f "$f"; then |
| |
9 echo "$f does not exist" |
| |
10 exit 1 |
| |
11 fi |
| |
12 done |
| |
13 |
| |
14 i=1 |
| |
15 n=$# |
| |
16 for f in "$@"; do |
| |
17 a=$(basename "$f" .py) |
| |
18 #prefix="results_$(hg id -i)_$(hg --repo=../pointsource_algs id -i)_$(hg --repo=../measures id -i)" |
| |
19 prefix="results" |
| |
20 printf '\033]2;%s\033\\' "${prefix}_$a" |
| |
21 tmp=$(mktemp) |
| |
22 sed "s/laser_and_mirrors/laser_and_mirrors2/; s/mirrors2_aux/mirrors_aux2/;" "$f" > "$tmp" |
| |
23 if echo "$a" | grep do_non_sliding=False > /dev/null; then |
| |
24 nice cargo run --release -- -o "${prefix}_$a" -a radon_sliding_fb --max-iter $iters "$f" "$tmp" |
| |
25 else |
| |
26 nice cargo run --release -- -o "${prefix}_$a" -a radon_sliding_fb -a radon_fb --max-iter $iters "$f" "$tmp" |
| |
27 fi |
| |
28 #echo "Results in ${prefix}_$a" |
| |
29 i=$(expr $i + 1) |
| |
30 done |
| |
31 |
| |
32 for f in "$@"; do |
| |
33 a=$(basename "$f" .py) |
| |
34 echo "Results in ${prefix}_$a" |
| |
35 done |