Skip to content

Commit 3adcb26

Browse files
authored
Merge pull request #118 from satra/fix/version
fix: issue with version in main
2 parents dde13d7 + c09d007 commit 3adcb26

File tree

1 file changed

+31
-35
lines changed

1 file changed

+31
-35
lines changed

mindboggle/mindboggle123

+31-35
Original file line numberDiff line numberDiff line change
@@ -275,40 +275,36 @@ if args.mb_num_threads:
275275
# ----------------------------------------------------------------------------
276276
if __name__ == '__main__':
277277

278-
if args.version:
279-
print('mindboggle123 runs {0}'.format(mindboggle_version))
280-
else:
281-
282-
from time import time
283-
time0 = time()
284-
285-
# --------------------------------------------------------------------
286-
# Workflow configuration: provenance tracking, content hashing, etc.:
287-
# --------------------------------------------------------------------
288-
# config.enable_provenance()
289-
mbFlow.config['execution']['hash_method'] = 'content'
290-
# mbFlow.config['execution']['use_relative_paths'] = True
291-
292-
# --------------------------------------------------------------------
293-
# Debug: http://nipy.org/nipype/users/config_file.html#debug-configuration
294-
# --------------------------------------------------------------------
295-
debug = False
296-
if debug:
297-
config.set('logging', 'workflow_level', 'DEBUG')
298-
logging.update_logging(config)
299-
mbFlow.config['execution']['stop_on_first_rerun'] = True
300-
301-
# --------------------------------------------------------------------
302-
# Run with or without a plugin:
303-
# --------------------------------------------------------------------
304-
if args.plugin:
305-
if args.plugin_args:
306-
mbFlow.run(plugin=args.plugin, plugin_args=eval(args.plugin_args))
307-
else:
308-
mbFlow.run(plugin=args.plugin)
278+
from time import time
279+
time0 = time()
280+
281+
# --------------------------------------------------------------------
282+
# Workflow configuration: provenance tracking, content hashing, etc.:
283+
# --------------------------------------------------------------------
284+
# config.enable_provenance()
285+
mbFlow.config['execution']['hash_method'] = 'content'
286+
# mbFlow.config['execution']['use_relative_paths'] = True
287+
288+
# --------------------------------------------------------------------
289+
# Debug: http://nipy.org/nipype/users/config_file.html#debug-configuration
290+
# --------------------------------------------------------------------
291+
debug = False
292+
if debug:
293+
config.set('logging', 'workflow_level', 'DEBUG')
294+
logging.update_logging(config)
295+
mbFlow.config['execution']['stop_on_first_rerun'] = True
296+
297+
# --------------------------------------------------------------------
298+
# Run with or without a plugin:
299+
# --------------------------------------------------------------------
300+
if args.plugin:
301+
if args.plugin_args:
302+
mbFlow.run(plugin=args.plugin, plugin_args=eval(args.plugin_args))
309303
else:
310-
mbFlow.run()
304+
mbFlow.run(plugin=args.plugin)
305+
else:
306+
mbFlow.run()
311307

312-
print('mindboggle123 done running recon-all, antsCorticalThicness.sh, '
313-
'and mindboggle {0} on {1} after {2:0.2f} seconds.'.
314-
format(mindboggle_version, ID, time() - time0))
308+
print('mindboggle123 done running recon-all, antsCorticalThicness.sh, '
309+
'and mindboggle {0} on {1} after {2:0.2f} seconds.'.
310+
format(mindboggle_version, ID, time() - time0))

0 commit comments

Comments
 (0)