Skip to content

Commit 5526eed

Browse files
committed
fix CenterMass txt file loading
1 parent 4801a4c commit 5526eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def _list_outputs(self):
734734
outputs = super(CenterMass, self)._list_outputs()
735735
outputs['out_file'] = os.path.abspath(self.inputs.in_file)
736736
outputs['cm_file'] = os.path.abspath(self.inputs.cm_file)
737-
sout = np.loadtxt(outputs['cm_file']) # pylint: disable=E1101
737+
sout = np.loadtxt(outputs['cm_file'], ndmin=2) # pylint: disable=E1101
738738
if len(sout) > 1:
739739
outputs['cm'] = [tuple(s) for s in sout]
740740
else:

0 commit comments

Comments
 (0)