Skip to content

Commit

Permalink
add pars3
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Apr 5, 2024
1 parent e337444 commit f45c050
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions bin/source_obsnum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mk_header() {

mk_trailer() {
echo 'if __name__ == "__main__":'
echo ' runs.mk_runs(project, on, pars1, pars2)'
echo ' runs.mk_runs(project, on, pars1, pars2, pars3, sys.argv)'
}

if [ -z "$1" ]; then
Expand Down Expand Up @@ -92,17 +92,27 @@ for src in $(tabcols $log 1 | sort | uniq); do
done

echo ""
echo "# parameters for the (optional) second pass of the pipeline"
echo "# parameters for the (optional) second pass of the pipeline (e.g. for bank=0)"
echo "pars2 = {}"
echo ""

for src in $(tabcols $log 1 | sort | uniq); do
echo "pars2[\"$src\"] = \"\""
done

echo ""
echo "# parameters for the (optional) thirds pass of the pipeline (usually for bank=1)"
echo "pars2 = {}"
echo ""

for src in $(tabcols $log 1 | sort | uniq); do
echo "pars3[\"$src\"] = \"\""
done


ns=$(tabcols $log 1 | sort | uniq | wc -l)
echo ""
echo "# Found $ns source(s)"
echo "# Found $ns source(s) for $pid"
echo ""

mk_trailer

0 comments on commit f45c050

Please sign in to comment.