108
108
# Access configs from any code section as:
109
109
value = config.section.setting
110
110
111
- Other responsibilities
112
- ----------------------
113
111
Logging
114
- .......
112
+ -------
113
+ .. autoclass:: loggers
114
+ :members:
115
115
116
+ Other responsibilities
117
+ ----------------------
116
118
The :py:mod:`config` is responsible for other conveniency actions.
117
119
118
120
* Switching Python's ``multiprocessing`` to *forkserver* mode.
119
121
* Set up a filter for warnings as early as possible.
120
- * Initialize/crawl runtime descriptive settings (e.g., default FreeSurfer license,
121
- execution environment, nipype and *fMRIPrep* versions, etc.).
122
122
* Automated I/O magic operations:
123
123
124
124
* :obj:`Path` \<-\> :obj:`str` \<-\> :obj:`Path`).
@@ -264,6 +264,8 @@ class environment(_Config):
264
264
"""
265
265
Read-only options regarding the platform and environment.
266
266
267
+ Crawls runtime descriptive settings (e.g., default FreeSurfer license,
268
+ execution environment, nipype and *fMRIPrep* versions, etc.).
267
269
The ``environment`` section is not loaded in from file,
268
270
only written out when settings are exported.
269
271
This config section is useful when reporting issues,
@@ -335,9 +337,7 @@ class execution(_Config):
335
337
"""Configure run-level settings."""
336
338
337
339
bids_dir = None
338
- """An existing path to the dataset, which must be BIDS-compliant.
339
- This config mutates to a :py:class:`~bids.layout.BIDSLayout` after calling
340
- :py:func:`~fmriprep.config.init_layout`."""
340
+ """An existing path to the dataset, which must be BIDS-compliant."""
341
341
bids_description_hash = None
342
342
"""Checksum (SHA256) of the ``dataset_description.json`` of the BIDS dataset."""
343
343
bids_filters = None
@@ -353,7 +353,8 @@ class execution(_Config):
353
353
fs_subjects_dir = None
354
354
"""FreeSurfer's subjects directory."""
355
355
layout = None
356
- """The path to the exported index of a py:class:`~bids.layout.BIDSLayout` object."""
356
+ """A py:class:`~bids.layout.BIDSLayout` object, see
357
+ :py:func:`~fmriprep.config.init_layout`."""
357
358
log_dir = None
358
359
"""The path to a directory that contains execution logs."""
359
360
log_level = 25
@@ -455,18 +456,18 @@ class workflow(_Config):
455
456
spaces = None
456
457
"""Standard and nonstandard spaces."""
457
458
t2s_coreg = None
458
- """Co-register echos before generating the T2\\ * reference of \
459
+ """Co-register echos before generating the T2\\ * reference of
459
460
:abbr:`ME-EPI (multi-echo echo-planar imaging)`."""
460
461
use_aroma = None
461
- """Run ICA-AROMA."""
462
+ """Run ICA-:abbr:` AROMA (automatic removal of motion artifacts)` ."""
462
463
use_bbr = None
463
- """Run boundary-based registration for BOLD-to-T1w registration (default: ``True``) ."""
464
+ """Run boundary-based registration for BOLD-to-T1w registration."""
464
465
use_syn = None
465
- """Run *fieldmap-less* susceptibility-derived distortions estimation \
466
+ """Run *fieldmap-less* susceptibility-derived distortions estimation
466
467
in the absence of any alternatives."""
467
468
468
469
469
- class loggers ( _Config ) :
470
+ class loggers :
470
471
"""
471
472
Setup loggers, providing access to them across the *fMRIPrep* run.
472
473
@@ -546,7 +547,7 @@ def to_filename(filename):
546
547
547
548
548
549
def init_layout ():
549
- """Create a new BIDS Layout on :attr:`~execution.bids_dir `."""
550
+ """Create a new BIDS Layout accessible with :attr:`~execution.layout `."""
550
551
if execution ._layout is None :
551
552
import re
552
553
from bids .layout import BIDSLayout
0 commit comments