Skip to content

Commit

Permalink
no more use of $oid
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jan 14, 2025
1 parent 4250223 commit a97986b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/seqps_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# If projectid is set, this is the subdirectory, within which obsnum is set
#

_version="seqps_pipeline: 1-oct-2024"
_version="seqps_pipeline: 3-oct-2024"

echo "LMTOY>> $_version"

Expand All @@ -20,7 +20,6 @@ echo "LMTOY>> $_version"
# - start or restart
path=${DATA_LMT:-data_lmt}
obsnum=0
oid=""
pdir=""
admit=1
clean=1
Expand Down Expand Up @@ -172,7 +171,6 @@ lmtoy_args "$@"

# pick one bank, or loop over all allowed banks
if [ $bank != -1 ]; then
oid=$bank
lmtoy_ps1
elif [ $numbands == 2 ]; then
# new style, April 2023 and beyond
Expand All @@ -182,7 +180,6 @@ elif [ $numbands == 2 ]; then
IFS="," read -a bandwidths <<< $bandwidth
# "expr 1 - 1" returns an error state 1 to the shell (it's a feature)
for bank in $(seq 0 $(expr $numbands - 1)); do
oid=$bank # oid not used yet
echo "LMTOY>> Preparing for bank=$bank"
rc1=lmtoy_${obsnum}__${bank}.rc
if [ ! -e $rc1 ]; then
Expand All @@ -202,12 +199,10 @@ elif [ $numbands == 2 ]; then
elif [ $numbands == 1 ]; then
# old style, we should not use it anymore
bank=0
oid=0
lmtoy_ps1
else
for b in $(seq 1 $numbands); do
bank=$(expr $b - 1)
oid=$bank
echo "======================================"
echo "Preparing for bank = $bank / $numbands"
lmtoy_ps1
Expand Down

0 comments on commit a97986b

Please sign in to comment.