Skip to content

Commit

Permalink
talairach_avi. #BF. I think I fixed the mv error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Greve committed Jun 25, 2021
1 parent 0a7c4cf commit debaf10
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions talairach_avi/talairach_avi
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,19 @@ echo $cmd >>& $LF
$cmd >>& $LF
set st = $status

# This used to assume that transforms was the outdir
set cmd = (mv -f talsrcimg_to_${target}_t4_vox2vox.txt $OutDir)
echo $cmd >>& $LF
$cmd >>& $LF
set st = $status
if($st) then
echo "ERROR: avi2talxfm failed, see $LF"
exit 1;

# This used to assume that "transforms" was the outdir
set fname1 = `getfullpath talsrcimg_to_${target}_t4_vox2vox.txt`
set fname2 = `getfullpath $OutDir/talsrcimg_to_${target}_t4_vox2vox.txt`
if($fname1 != $fname2) then
set cmd = (mv -f $fname1 $fname2)
echo $cmd |& tee -a $LF
$cmd |& tee -a $LF
set st = $status
if($st) then
echo "ERROR: avi2talxfm failed, see $LF"
exit 1;
endif
endif

# Create an lta version of the xfm for convenience
Expand Down

0 comments on commit debaf10

Please sign in to comment.