Skip to content
Snippets Groups Projects

Allow mmorf executable to be specified by an environment variable

Merged Paul McCarthy requested to merge mmorf into master
1 file
+ 7
3
Compare changes
  • Side-by-side
  • Inline
+ 7
3
@@ -14,10 +14,14 @@ MMORF_CONFIG=${outdir}/mmorf_config.ini
cat mov_to_ref_mm.ini | \
sed "s%##MMORF_INPUT_DIR##%${indir}%g" | \
sed "s%##MMORF_OUTPUT_DIR##%${outdir}%g" > \
${MMORF_CONFIG}
${MMORF_CONFIG}
if [ "${MMORF_EXE}" == "" ]; then
MMORF_EXE=$(which mmorf)
fi
echo "-----------"
echo "MMORF Test: $(which mmorf)"
echo "MMORF Test: ${MMORF_EXE}"
echo "-----------"
echo ""
@@ -32,7 +36,7 @@ echo ""
# cluster. This will just run normally if running
# locally (but fsl_sub will still return a job id
# that can be used in the subsequent hold call).
job_id=$(fsl_sub --coprocessor=cuda --logdir=${outdir} mmorf --version --config ${MMORF_CONFIG})
job_id=$(fsl_sub --coprocessor=cuda --logdir=${outdir} ${MMORF_EXE} --version --config ${MMORF_CONFIG})
touch ${outdir}/wait
fsl_sub --jobhold ${job_id} rm ${outdir}/wait
while [ -e ${outdir}/wait ]; do
Loading