changeset 302:13414b0dfefb trim

adapt to new configuration
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 13 May 2025 12:05:22 +0100
parents 4981c41628dd
children 9e6bc4e941ab
files bin/cdbp.sh
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/bin/cdbp.sh	Tue May 13 12:04:01 2025 +0100
+++ b/bin/cdbp.sh	Tue May 13 12:05:22 2025 +0100
@@ -4,10 +4,10 @@
 # where i is the 0-origin index of a 17th, so e.g. cdbp.sh 2 will run 
 #   test_cdbp.py ... ks_%d-%d.cdb 2 3 12 18
 i=$1
-k1=$((i * 6))
-k2=$(((i + 1) * 6))
-k2=$((k2 > 100 ? 100 : k2))
-echo wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
-wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
-python3 -c 'import test_cdbp;test_cdbp.mainp()' ks_%d-%d.cdb $i $((i + 1)) $k1 $k2
+k1=$((i >= 16 ?  ((i * 6) - 1) : (i * 6)))
+k2=$((i < 15 ? (i + 1) * 6 : 90 + (i - 14) * 5))
+#k2=$((k2 > 100 ? 100 : k2))
+echo $(printf lmh_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
+#wc -l $(printf ks_%d-%d.cdb $k1 $((k2 - 1))) 1>&2
+python3 -c 'import cdb_one;cdb_one.mainp()' lmh_%d-%d.cdb $k1 $k2