Skip to content

Commit 55247f3

Browse files
author
Yannick Schwartz
committed
Bug fix for the XNATSink input specs
1 parent 6c621f0 commit 55247f3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nipype/interfaces/io.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
23
# vi: set ft=python sts=4 ts=4 sw=4 et:
34
""" Set of interfaces that allow interaction with data. Currently
@@ -723,7 +724,9 @@ def _list_outputs(self):
723724
if not args:
724725
file_objects = xnat.select(template).get('obj')
725726
if file_objects == []:
726-
raise IOError('Template %s returned no files'%template)
727+
raise IOError('Template %s returned no files' \
728+
% template
729+
)
727730
outputs[key] = list_to_filename(
728731
[str(file_object.get())
729732
for file_object in file_objects
@@ -817,14 +820,14 @@ class XNATSinkInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec):
817820
desc=('Option to customize ouputs representation in XNAT - '
818821
'assessor level will be used with specified id'),
819822
mandatory=False,
820-
xor=['reconstruction_id', 'scan_id']
823+
xor=['reconstruction_id']
821824
)
822825

823826
reconstruction_id = traits.Str(
824827
desc=('Option to customize ouputs representation in XNAT - '
825828
'reconstruction level will be used with specified id'),
826829
mandatory=False,
827-
xor=['assessor_id', 'scan_id']
830+
xor=['assessor_id']
828831
)
829832

830833
share = traits.Bool(

0 commit comments

Comments
 (0)