Skip to content

Commit 9409ce5

Browse files
committed
fix: batch example
1 parent 2ef877f commit 9409ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The first script aggregates the DICOM directories and submits them to
5656
DCMDIRS=(`find ${DCMROOT} -maxdepth 1 -name voice* -type d`)
5757

5858
# submit to another script as a job array on SLURM
59-
sbatch --array=0-$len run_heudiconv.sh ${OUTPUT} ${DCMDIRS[@]}
59+
sbatch --array=0-`expr ${#DCMDIRS[@]} - 1` run_heudiconv.sh ${OUTPUT} ${DCMDIRS[@]}
6060

6161

6262
The second script processes a DICOM directory with ``heudiconv`` using the built-in

0 commit comments

Comments
 (0)