Skip to content

Commit 4d9a080

Browse files
committed
use terminal_output
1 parent f5bae9f commit 4d9a080

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ class WarpPointsToStd(WarpPoints):
20152015
input_spec = WarpPointsToStdInputSpec
20162016
output_spec = WarpPointsOutputSpec
20172017
_cmd = 'img2stdcoord'
2018+
_terminal_output = 'file'
20182019

20192020

20202021
class WarpPointsFromStdInputSpec(CommandLineInputSpec):
@@ -2034,15 +2035,12 @@ class WarpPointsFromStdInputSpec(CommandLineInputSpec):
20342035
coord_mm = traits.Bool(False, argstr='-mm', xor=['coord_vox'],
20352036
desc='all coordinates in mm')
20362037

2037-
out_file = File(name_source='in_coords', argstr='> %s', position=-1,
2038-
name_template='%s_warped', output_name='out_file',
2039-
desc='output file name')
2040-
20412038

20422039
class WarpPointsFromStd(CommandLine):
20432040
"""
20442041
Use FSL `std2imgcoord <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/flirt/overview.html>`_
2045-
to transform point sets to standard space coordinates. Accepts plain text .
2042+
to transform point sets to standard space coordinates. Accepts plain text coordinates
2043+
files.
20462044
20472045
20482046
Examples
@@ -2066,6 +2064,15 @@ class WarpPointsFromStd(CommandLine):
20662064
output_spec = WarpPointsOutputSpec
20672065
_cmd = 'std2imgcoord'
20682066

2067+
def _run_interface(self, runtime):
2068+
runtime = super(WarpPointsFromStd, self)._run_interface(runtime)
2069+
self._out_file = runtime.stdout
2070+
2071+
def _list_outputs(self):
2072+
outputs = self.output_spec().get()
2073+
outputs['out_file'] = self._out_file
2074+
return outputs
2075+
20692076

20702077
class MotionOutliersInputSpec(FSLCommandInputSpec):
20712078
in_file = File(

0 commit comments

Comments
 (0)