Skip to content

Commit

Permalink
progress bar for different cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang548 committed May 4, 2022
1 parent 5c903a6 commit 70b223d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions script/network/bts1gensub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub1.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh
echo "wait" >> qsub1.sh

#tmpqueue=($(slist|grep $queue))
Expand All @@ -90,9 +89,10 @@ echo -e "\n"

grep "^sbatch" qsub1.sh > job1_command
if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]];then
sed -i 's/sbatch -W/srun -n1 bash/g;s/&//g' qsub1.sh
sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub1.sh
echo -e "Running $(wc -l < job1_command) jobs ... \n"
else
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh
echo -e "Submitting $(wc -l < job1_command) jobs ... \n"
fi

Expand Down
4 changes: 2 additions & 2 deletions script/network/bts2gensub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub2.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh
echo "wait" >> qsub2.sh

#tmpqueue=($(slist|grep $queue))
Expand All @@ -94,9 +93,10 @@ echo -e "\n"

grep "^sbatch" qsub2.sh > job2_command
if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]];then
sed -i 's/sbatch -W/srun -n1 bash/g;s/&//g' qsub2.sh
sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub2.sh
echo -e "Running $(wc -l < job2_command) jobs ... \n"
else
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh
echo -e "Submitting $(wc -l < job2_command) jobs ... \n"
fi

Expand Down

0 comments on commit 70b223d

Please sign in to comment.