From 3e72a369b6567702711774ea0deec4fbfe47790a Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Tue, 7 Jul 2026 14:23:49 +0200 Subject: Added helper bash script for getting k-eff range for pool heights and fixed driver script --- extract_ranges.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 extract_ranges.sh (limited to 'extract_ranges.sh') diff --git a/extract_ranges.sh b/extract_ranges.sh new file mode 100755 index 0000000..2c51300 --- /dev/null +++ b/extract_ranges.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "#" $(date) > results/range_table + +pool_heights=$(cat results/keff_table | awk '{print $1}' | uniq) +#pool_heights="41" + +for ph in $pool_heights; do + # Find min and max + output=$(cat results/keff_table | awk -v var=$ph '$1 == var {print $3}') + min_k=$(echo "$output" | sort -g | head -n 1) + max_k=$(echo "$output" | sort -g | tail -n 1) + echo $ph $min_k $max_k >> results/range_table +done -- cgit v1.2.3