annotate bin/cdbp.sh @ 366:1ff1bbf30472 plus

got the full chain running
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 08 Apr 2026 13:51:00 +0100
parents bd931adc820b
children 6082474a4e2e
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
364
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
2 # One cdb pipeline step, doing 1/6 of the work
281
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 # Usage: cdbp.sh i
364
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
4 # where i is the 0-origin index of a 6th, so e.g. cdbp.sh 2 will run
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
5 # test_cdbp.py ... ks_%d-%d.cdb lmh_%d-%d.cdb 34 50
281
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 i=$1
364
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
7 k1=$((i < 4 ? (i * 17) : (4 +(i * 16))))
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
8 k2=$((i < 4 ? k1 + 16 : k1 + 15))
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
9 #echo $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
bd931adc820b working on new shrunk cdb en- and de-coding
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 305
diff changeset
10 #cat $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) > /dev/null
366
1ff1bbf30472 got the full chain running
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 364
diff changeset
11 python3 -c 'import cdb_one;cdb_one.mainp()' lmh%d-%df.cdb $k1 $k2
281
25d49e1f6c1d automate a cdb chain
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12