Skip to content

Commit

Permalink
remove --no_resampling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astewartau committed Dec 20, 2021
1 parent 6a639e2 commit e79759e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/run_test_qsm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,6 @@ if [ 1 -eq "$(echo "${min} < -0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; e
[ -f /tmp/02_qsm_output/workflow_qsm/sub-170705-134431-std-1312211075243167001/ses-1/_run_run-1/correct_inhomogeneity/mapflow/_correct_inhomogeneity0/result__correct_inhomogeneity0.pklz ] && echo "[DEBUG]. Test OK." || exit 1
sudo rm -rf /tmp/02_qsm_output

echo "[DEBUG] starting run_2_qsm.py --no_resampling --single_pass"
sudo docker run -v /tmp:/tmp $container python3 /tmp/QSMxT/run_2_qsm.py /tmp/01_bids /tmp/02_qsm_output --n_procs 2 --qsm_iterations 2 --no_resampling --single_pass
[ -f $out_singlepass1 ] && echo "[DEBUG]. Test OK." || exit 1
min_max_std=`sudo docker run -v /tmp:/tmp $container fslstats $out_singlepass1 -R -S`
std=`echo $min_max_std | cut -d ' ' -f 3`
max=`echo $min_max_std | cut -d ' ' -f 2`
min=`echo $min_max_std | cut -d ' ' -f 1`
if [ 1 -eq "$(echo "${std} > 0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi
if [ 1 -eq "$(echo "${max} > 0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi
if [ 1 -eq "$(echo "${min} < -0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi

[ -f $out_singlepass2 ] && echo "[DEBUG]. Test OK." || exit 1
min_max_std=`sudo docker run -v /tmp:/tmp $container fslstats $out_singlepass2 -R -S`
std=`echo $min_max_std | cut -d ' ' -f 3`
max=`echo $min_max_std | cut -d ' ' -f 2`
min=`echo $min_max_std | cut -d ' ' -f 1`
if [ 1 -eq "$(echo "${std} > 0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi
if [ 1 -eq "$(echo "${max} > 0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi
if [ 1 -eq "$(echo "${min} < -0.0001" | bc)" ]; then echo "[DEBUG]. Test OK."; else echo "NOT OK" && exit 1; fi
sudo rm -rf /tmp/02_qsm_output

echo "[DEBUG] starting run_2_qsm.py --add_bet --single_pass"
sudo docker run -v /tmp:/tmp $container python3 /tmp/QSMxT/run_2_qsm.py /tmp/01_bids /tmp/02_qsm_output --n_procs 2 --qsm_iterations 2 --add_bet --single_pass
[ -f $out_singlepass1 ] && echo "[DEBUG]. Test OK." || exit 1
Expand Down

0 comments on commit e79759e

Please sign in to comment.