Skip to content

Commit 0af3425

Browse files
josephmjeoesteban
authored andcommitted
fix doctests
1 parent 15fd36f commit 0af3425

File tree

5 files changed

+1
-76
lines changed

5 files changed

+1
-76
lines changed

dmriprep/conftest.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import numpy as np
66
import nibabel as nb
77
import pytest
8-
from bids.layout import BIDSLayout
98
from dipy.data.fetcher import _make_fetcher, UW_RW_URL
109

1110
_dipy_datadir_root = os.getenv('DMRIPREP_TESTS_DATA') or Path.home()
@@ -29,20 +28,6 @@
2928
'bvals': np.loadtxt(dipy_datadir / "HARDI193.bval"),
3029
}
3130

32-
test_data_env = os.getenv('TEST_DATA_HOME', '/tmp/data')
33-
test_output_dir = os.getenv('TEST_OUTPUT_DIR')
34-
test_workdir = os.getenv('TEST_WORK_DIR')
35-
36-
layouts = {p.name: BIDSLayout(str(p), validate=False, derivatives=True)
37-
for p in Path(test_data_env).glob('*') if p.is_dir()}
38-
39-
40-
def pytest_report_header(config):
41-
msg = "Datasets found: %s" % ', '.join([v.root for v in layouts.values()])
42-
if test_output_dir is not None:
43-
msg += '\nOutput folder: %s' % Path(test_output_dir).resolve()
44-
return msg
45-
4631

4732
@pytest.fixture(autouse=True)
4833
def doctest_autoimport(doctest_namespace):
@@ -63,18 +48,3 @@ def doctest_autoimport(doctest_namespace):
6348
def dipy_test_data(scope='session'):
6449
"""Create a temporal directory shared across tests to pull data in."""
6550
return _sherbrooke_data
66-
67-
68-
@pytest.fixture
69-
def workdir():
70-
return None if test_workdir is None else Path(test_workdir)
71-
72-
73-
@pytest.fixture
74-
def output_path():
75-
return None if test_output_dir is None else Path(test_output_dir)
76-
77-
78-
@pytest.fixture
79-
def bids_layouts():
80-
return layouts

dmriprep/workflows/dwi/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Orchestrating the dMRI-preprocessing workflow.
33
44
.. autofunction:: init_dwi_preproc_wf
5-
.. autofunction:: init_dwi_derivatives_wf
65
76
"""
87

dmriprep/workflows/dwi/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def init_dwi_reference_wf(omp_nthreads, dwi_file=None,
3333
3434
from dmriprep.workflows.dwi.util import init_dwi_reference_wf
3535
wf = init_dwi_reference_wf(omp_nthreads=1)
36-
wf.inputnode.inputs.b0_ixs=[0]
36+
wf.inputs.inputnode.b0_ixs=[0]
3737
3838
Parameters
3939
----------

dmriprep/workflows/tests/__init__.py

Whitespace-only changes.

dmriprep/workflows/tests/test_util.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)