Skip to content

Commit 9780253

Browse files
committed
BF: nipype >= 1.0 deprecates terminal_output inputs option
1 parent f65b402 commit 9780253

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

heudiconv/convert.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def convert_dicom(item_dicoms, bids, prefix,
369369

370370
def nipype_convert(item_dicoms, prefix, with_prov, bids, tmpdir):
371371
""" """
372+
import nipype
372373
if with_prov:
373374
from nipype import config
374375
config.enable_provenance()
@@ -381,7 +382,9 @@ def nipype_convert(item_dicoms, prefix, with_prov, bids, tmpdir):
381382
convertnode.base_dir = tmpdir
382383
convertnode.inputs.source_names = item_dicoms
383384
convertnode.inputs.out_filename = op.basename(op.dirname(prefix))
384-
convertnode.inputs.terminal_output = 'allatonce'
385+
if nipype.__version__.split('.')[0] == '0':
386+
# deprecated since 1.0, might be needed(?) before
387+
convertnode.inputs.terminal_output = 'allatonce'
385388
convertnode.inputs.bids_format = bids
386389
return convertnode.run()
387390

0 commit comments

Comments
 (0)