Skip to content

Commit 3ece83d

Browse files
committed
DOC: Error on warnings; FIX: Py3.6 compatibility
1 parent 14c3e87 commit 3ece83d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jobs:
321321
command: python -m pip install ".[doc]"
322322
- run:
323323
name: Build documentation
324-
command: make -C docs html
324+
command: make SPHINXOPTS="-W" -C docs html
325325
- store_artifacts:
326326
path: /tmp/src/fmriprep/docs/_build/html
327327

docs/workflows.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ is presented below:
2020

2121
from fmriprep.workflows.base import init_single_subject_wf
2222
from collections import namedtuple
23-
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
23+
BIDSLayout = namedtuple('BIDSLayout', ['root'])
2424
wf = init_single_subject_wf(
25-
layout=BIDSLayout(),
25+
layout=BIDSLayout('.'),
2626
subject_id='test',
2727
name='single_subject_wf',
2828
task_id='',
@@ -273,7 +273,7 @@ BOLD preprocessing
273273
:simple_form: yes
274274

275275
from collections import namedtuple
276-
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
276+
BIDSLayout = namedtuple('BIDSLayout', ['root'])
277277
from fmriprep.workflows.bold import init_func_preproc_wf
278278
wf = init_func_preproc_wf(
279279
'/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
@@ -287,7 +287,7 @@ BOLD preprocessing
287287
force_syn=True,
288288
freesurfer=True,
289289
ignore=[],
290-
layout=BIDSLayout(),
290+
layout=BIDSLayout('.'),
291291
low_mem=False,
292292
medial_surface_nan=False,
293293
omp_nthreads=1,

fmriprep/workflows/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def init_fmriprep_wf(layout, subject_list, task_id, echo_idx, run_uuid, work_dir
5252
5353
import os
5454
from collections import namedtuple
55-
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
55+
BIDSLayout = namedtuple('BIDSLayout', ['root'])
5656
from fmriprep.workflows.base import init_fmriprep_wf
5757
os.environ['FREESURFER_HOME'] = os.getcwd()
58-
wf = init_fmriprep_wf(layout=BIDSLayout(),
58+
wf = init_fmriprep_wf(layout=BIDSLayout('.'),
5959
subject_list=['fmripreptest'],
6060
task_id='',
6161
echo_idx=None,
@@ -255,8 +255,8 @@ def init_single_subject_wf(layout, subject_id, task_id, echo_idx, name, reportle
255255
256256
from fmriprep.workflows.base import init_single_subject_wf
257257
from collections import namedtuple
258-
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
259-
wf = init_single_subject_wf(layout=BIDSLayout(),
258+
BIDSLayout = namedtuple('BIDSLayout', ['root'])
259+
wf = init_single_subject_wf(layout=BIDSLayout('.'),
260260
subject_id='test',
261261
task_id='',
262262
echo_idx=None,

fmriprep/workflows/bold/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
6262
6363
from fmriprep.workflows.bold import init_func_preproc_wf
6464
from collections import namedtuple
65-
BIDSLayout = namedtuple('BIDSLayout', ['root'], defaults='.')
65+
BIDSLayout = namedtuple('BIDSLayout', ['root'])
6666
wf = init_func_preproc_wf('/completely/made/up/path/sub-01_task-nback_bold.nii.gz',
6767
omp_nthreads=1,
6868
ignore=[],
@@ -88,7 +88,7 @@ def init_func_preproc_wf(bold_file, ignore, freesurfer,
8888
err_on_aroma_warn=False,
8989
aroma_melodic_dim=-200,
9090
num_bold=1,
91-
layout=BIDSLayout())
91+
layout=BIDSLayout('.'))
9292
9393
**Parameters**
9494

0 commit comments

Comments
 (0)