Skip to content

Commit 231208c

Browse files
committed
added check to skip processing if out_unwarped already exists
1 parent 6175a0d commit 231208c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

run.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ do
212212

213213
if echo $file | grep -q DIS
214214
then
215-
echo "$file already gradient distortion corrected, skipping..."
215+
echo "$file already gradient distortion corrected from scanner, skipping..."
216216
continue
217217
fi
218218

@@ -231,6 +231,13 @@ do
231231
out_graddev=$sourcedata/$folder/${fileprefix}_${filetype}_target-nativeGC_graddev.nii.gz
232232
out_inpaintmask=$sourcedata/$folder/${fileprefix}_${filetype}_inpaintMask.nii.gz
233233

234+
if [ -e $out_unwarped ]
235+
then
236+
echo "$file already gradient distortion corrected by this app, skipping..."
237+
echo " to force re-processing: rm $out_unwarped"
238+
continue
239+
fi
240+
234241

235242
if [ "`fslval $nii dim4`" -lt 2 ]
236243
then

0 commit comments

Comments
 (0)