Skip to content

Commit ef5daf2

Browse files
committed
OPEN - task 788: Add support for running interface from commandline
http://github.com/nipy/nipype/issues/issue/788 Moved and cleaned up the run_interface tool.
1 parent 4d14512 commit ef5daf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/run_interface.py renamed to bin/nipype_cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def add_options(parser=None, module=None, function=None):
2323
__import__(module)
2424
interface = getattr(sys.modules[module],function)()
2525

26-
for k,v in interface.inputs.iteritems():
26+
for k,v in interface.inputs.items():
2727
parser.add_option("-%s"%k[0], "--%s"%k, dest="IXI%s"%k,
2828
metavar=k,
2929
action='store',type='string',
@@ -33,7 +33,7 @@ def add_options(parser=None, module=None, function=None):
3333
def run_instance(interface, options):
3434
if interface:
3535
print "setting function inputs"
36-
for k,v in interface.inputs.iteritems():
36+
for k,v in interface.inputs.items():
3737
optionskey = ''.join(('IXI',k))
3838
if hasattr(options, optionskey):
3939
setattr(interface.inputs, k,

0 commit comments

Comments
 (0)