Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgorgo committed Sep 13, 2016
1 parent 10c5062 commit 14bbfa0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def run(command, env={}):
default=1, type=int)
parser.add_argument('--stages', help='Autorecon stages to run.',
choices=["autorecon1", "autorecon2", "autorecon3", "autorecon-all"],
default=["autorecon-all"]
default=["autorecon-all"],
nargs="+")
parser.add_argument('--template_name', help='Name for the custom group level template generated for this dataset',
default="average")
Expand Down Expand Up @@ -119,9 +119,11 @@ def run(command, env={}):
for tp in timepoints:
# longitudinally process all timepoints
fsid = "sub-%s"%subject_label
cmd = "recon-all -long %s %s -sd %s -all -openmp %d"%(tp,
stages = " ".join(["-" + stage for stage in args.stages])
cmd = "recon-all -long %s %s -sd %s %s -openmp %d"%(tp,
fsid,
args.output_dir,
stages,
args.n_cpus)
print(cmd)
if os.path.exists(os.path.join(args.output_dir, tp + ".long." + fsid)):
Expand All @@ -135,9 +137,11 @@ def run(command, env={}):
"anat",
"*_T1w.nii*"))])
fsid = "sub-%s"%subject_label
cmd = "recon-all -subjid %s -sd %s %s -all -openmp %d"%(fsid,
stages = " ".join(["-" + stage for stage in args.stages])
cmd = "recon-all -subjid %s -sd %s %s %s -openmp %d"%(fsid,
args.output_dir,
input_args,
stages,
args.n_cpus)
print(cmd)
if os.path.exists(os.path.join(args.output_dir, fsid)):
Expand Down

0 comments on commit 14bbfa0

Please sign in to comment.