Commit 6d16fd32 authored by Shaun Warrington's avatar Shaun Warrington
Browse files

Merge branch 'bug-allow-noninteger' into 'master'

Bug allow noninteger

See merge request !17
parents 94dd286c 26b6310e
Pipeline #6681 passed with stage
in 43 seconds
...@@ -70,7 +70,6 @@ Splash ...@@ -70,7 +70,6 @@ Splash
[ -z "$1" ] && Usage [ -z "$1" ] && Usage
# Set default options # Set default options
bpx="" bpx=""
out="" out=""
...@@ -402,7 +401,7 @@ while read structstring; do ...@@ -402,7 +401,7 @@ while read structstring; do
done done
else else
for m in seed stop exclude;do for m in seed stop exclude;do
if [ $res -gt 0 ];then if (( $(echo "$res > 0" | bc -l) ));then
# Resample at a different resolution # Resample at a different resolution
mkdir -p "$out/masks/$struct" mkdir -p "$out/masks/$struct"
if [ `$FSLDIR/bin/imtest "$maskdir/$m"` -eq 1 ];then if [ `$FSLDIR/bin/imtest "$maskdir/$m"` -eq 1 ];then
...@@ -434,7 +433,7 @@ while read structstring; do ...@@ -434,7 +433,7 @@ while read structstring; do
done done
echo $out/masks/$struct/target* > "$targetfile" echo $out/masks/$struct/target* > "$targetfile"
else else
if [ $res -gt 0 ];then if (( $(echo "$res > 0" | bc -l) ));then
# Resample at a different resolution # Resample at a different resolution
for tfile in $targets;do for tfile in $targets;do
t=`basename "$tfile"` t=`basename "$tfile"`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment