]> Creatis software - clitk.git/commitdiff
Support for mha
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 22 Jul 2013 15:22:44 +0000 (17:22 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 22 Jul 2013 15:22:44 +0000 (17:22 +0200)
cluster_tools/gate_power_merge.sh

index fc0e6aa3233fe032bf9713b1038e27315f4c9e67..4b5f18486ceb8148a1d68426366999e1a533a5f3 100755 (executable)
@@ -343,7 +343,7 @@ function merge_dispatcher {
         return
     fi
 
-    if test "${firstpartialoutputextension}" == "mhd"
+    if test "${firstpartialoutputextension}" == "mhd" || test "${firstpartialoutputextension}" == "mha"
     then
         echo "${indent}this is a mhd image"
         local mergedfile="${outputdir}/$(basename "${firstpartialoutputfile}")"
@@ -439,7 +439,7 @@ echo "output dir is ${outputdir}"
 test -d "${outputdir}" && rm -r "${outputdir}"
 mkdir "${outputdir}"
 
-for outputfile in $(find "${rundir}" -regextype 'posix-extended' -type f -regex "${rundir}/output.*\.(hdr|mhd|root|txt)" | awk -F '/' '{ print $NF; }' | sort | uniq)
+for outputfile in $(find "${rundir}" -regextype 'posix-extended' -type f -regex "${rundir}/output.*\.(hdr|mhd|mha|root|txt)" | awk -F '/' '{ print $NF; }' | sort | uniq)
 do
     merge_dispatcher "${outputfile}"
 done