Skip to content
Snippets Groups Projects
Commit cd2f484e authored by Matthew Webster's avatar Matthew Webster
Browse files

BF: Correctly kill the background eddy process(es)

parent 5d3f6ee3
No related branches found
No related tags found
1 merge request!75BF: Correctly kill the background eddy process(es)
Pipeline #27841 skipped
......@@ -4,6 +4,8 @@
# Tests topup, eddy, and gps.
set -e
# -m needed for correct jobs control
set -m
set -x
outdir=$1
......@@ -40,15 +42,18 @@ if which eddy_openmp &> /dev/null; then
--index=$subdatadir/index.txt --acqp=$subdatadir/acqparams.txt \
--bvecs=$subdatadir/bvecs --bvals=$subdatadir/bvals \
--fwhm=0 --topup=$outdir/topup_AP_PA_b0 --flm=quadratic \
--out=$outdir/eddy_unwarped_images & sleep 10; kill -s TERM $!
--out=$outdir/eddy_unwarped_images &
elif which eddy &> /dev/null; then
eddy --imain=$subdatadir/dwidata --mask=$outdir/hifi_nodif_brain_mask \
--index=$subdatadir/index.txt --acqp=$subdatadir/acqparams.txt \
--bvecs=$subdatadir/bvecs --bvals=$subdatadir/bvals \
--fwhm=0 --topup=$outdir/topup_AP_PA_b0 --flm=quadratic \
--out=$outdir/eddy_unwarped_image & sleep 10; kill -s TERM $!
--out=$outdir/eddy_unwarped_images &
fi
sleep 10
kill %1
cp $subdatadir/pre_baked/eddy_unwarped_images* $outdir
# Finally, test the gps command, for generating bvecs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment