annotate bin/cdbp.sh @ 348:ceacc13bf0e7 trim

rework test output to read better
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 11 Mar 2026 18:20:05 +0000
parents 3bd6378eb64e
children bd931adc820b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
281
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/usr/bin/bash
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 # One cdb pipeline step, doing 1/17th of the work
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 # Usage: cdbp.sh i
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 # where i is the 0-origin index of a 17th, so e.g. cdbp.sh 2 will run
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 # test_cdbp.py ... ks_%d-%d.cdb 2 3 12 18
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 i=$1
302
13414b0dfefb adapt to new configuration
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 281
diff changeset
7 k1=$((i >= 16 ? ((i * 6) - 1) : (i * 6)))
13414b0dfefb adapt to new configuration
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 281
diff changeset
8 k2=$((i < 15 ? (i + 1) * 6 : 90 + (i - 14) * 5))
13414b0dfefb adapt to new configuration
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 281
diff changeset
9 #k2=$((k2 > 100 ? 100 : k2))
13414b0dfefb adapt to new configuration
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 281
diff changeset
10 echo $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
305
3bd6378eb64e working
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 302
diff changeset
11 cat $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) > /dev/null
302
13414b0dfefb adapt to new configuration
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 281
diff changeset
12 python3 -c 'import cdb_one;cdb_one.mainp()' lmh_%d-%d.cdb $k1 $k2
281
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13