Skip to content

Commit 3e16ba7

Browse files
committed
enh: template directory + text crashfile
1 parent 045409a commit 3e16ba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mindboggle/mindboggle123

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ adv_args.add_argument("--working",
7272
default=os.path.join('/home/jovyan/work/mindboggle123_output',
7373
'working'),
7474
metavar='STR')
75+
adv_args.add_argument("--template", help="folder with OASIS-30 template",
76+
default='/opt/data/OASIS-30_Atropos_template', metavar='STR')
7577
adv_args.add_argument("--skip_freesurfer", action='store_true',
7678
help="skip FreeSurfer for debugging (nipype skips when run)")
7779
adv_args.add_argument("--skip_ants", action='store_true',
@@ -105,6 +107,7 @@ IMAGE = args.IMAGE
105107
ID = args.id
106108
OUT = args.out
107109
WORK = args.working
110+
TDIR = args.template
108111
if args.skip_freesurfer and args.skip_ants:
109112
print("Use only one of the skip arguments: --skip_freesurfer, --skip_ants.")
110113

@@ -162,7 +165,6 @@ if args.fs_flags:
162165
# -p $TEMPLATE/Priors2/priors%d.nii.gz \
163166
# -o $PREFIX
164167
# ----------------------------------------------------------------------------
165-
TDIR = '/opt/data/OASIS-30_Atropos_template'
166168
TEMPLATE = os.path.join(TDIR, 'T_template0.nii.gz')
167169
REG = os.path.join(TDIR, 'T_template0_BrainCerebellum.nii.gz')
168170
PROB = os.path.join(TDIR, 'T_template0_BrainCerebellumProbabilityMask.nii.gz')
@@ -291,6 +293,7 @@ if __name__ == '__main__':
291293
# config.enable_provenance()
292294
mbFlow.config['execution']['hash_method'] = 'content'
293295
# mbFlow.config['execution']['use_relative_paths'] = True
296+
mbFlow.config['execution']['crashfile_format'] = 'txt'
294297

295298
# --------------------------------------------------------------------
296299
# Debug: http://nipy.org/nipype/users/config_file.html#debug-configuration

0 commit comments

Comments
 (0)