|
10 | 10 |
|
11 | 11 | .. code-block:: Python
|
12 | 12 |
|
13 |
| - >>> from fmriprep import config |
14 |
| - >>> config_file = config.execution.work_dir / '.fmriprep.toml' |
15 |
| - >>> config.to_filename(config_file) |
16 |
| - >>> # Call build_workflow(config_file, retval) in a subprocess |
17 |
| - >>> with Manager() as mgr: |
18 |
| - >>> from .workflow import build_workflow |
19 |
| - >>> retval = mgr.dict() |
20 |
| - >>> p = Process(target=build_workflow, args=(str(config_file), retval)) |
21 |
| - >>> p.start() |
22 |
| - >>> p.join() |
23 |
| - >>> config.load(config_file) |
24 |
| - >>> # Access configs from any code section as: |
25 |
| - >>> value = config.section.setting |
| 13 | + from fmriprep import config |
| 14 | + config_file = config.execution.work_dir / '.fmriprep.toml' |
| 15 | + config.to_filename(config_file) |
| 16 | + # Call build_workflow(config_file, retval) in a subprocess |
| 17 | + with Manager() as mgr: |
| 18 | + from .workflow import build_workflow |
| 19 | + retval = mgr.dict() |
| 20 | + p = Process(target=build_workflow, args=(str(config_file), retval)) |
| 21 | + p.start() |
| 22 | + p.join() |
| 23 | + config.load(config_file) |
| 24 | + # Access configs from any code section as: |
| 25 | + value = config.section.setting |
26 | 26 |
|
27 | 27 | The module also has a :py:func:`to_filename` function to allow writting out
|
28 | 28 | the settings to hard disk in *ToML* format, which looks like
|
@@ -313,7 +313,7 @@ class execution(_Config):
|
313 | 313 | """A dictionary of BIDS selection filters."""
|
314 | 314 | boilerplate_only = False
|
315 | 315 | """Only generate a boilerplate."""
|
316 |
| - debug = None |
| 316 | + debug = False |
317 | 317 | """Run in sloppy mode (meaning, suboptimal parameters that minimize run-time)."""
|
318 | 318 | echo_idx = None
|
319 | 319 | """Select a particular echo for multi-echo EPI datasets."""
|
|
0 commit comments