Skip to content

Commit 8ed1c44

Browse files
committed
Removed data, using test data from pybids package
1 parent da44acf commit 8ed1c44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nipype/interfaces/bids.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
99
Change directory to provide relative paths for doctests
1010
>>> import os
11-
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
12-
>>> datadir = os.path.realpath(os.path.join(filepath, '../testing/data'))
11+
>>> import bids
12+
>>> filepath = os.path.realpath(os.path.dirname(bids.__file__))
13+
>>> datadir = os.path.realpath(os.path.join(filepath, 'grabbids/tests/data/'))
1314
>>> os.chdir(datadir)
1415
1516
"""
@@ -51,7 +52,7 @@ class BIDSDataGrabber(BaseInterface):
5152
>>> bg = BIDSDataGrabber()
5253
>>> bg.inputs.base_dir = 'ds005/'
5354
>>> results = bg.run()
54-
>>> pprint.pprint(len(results.outputs.outfield)) # doctest: +ALLOW_UNICODE
55+
>>> len(results.outputs.outfield) # doctest: +ALLOW_UNICODE
5556
116
5657
5758
Using dynamically created, user-defined input fields,

0 commit comments

Comments
 (0)