diff --git a/nipype/interfaces/fsl/utils.py b/nipype/interfaces/fsl/utils.py index 24ebeec040..51d0d7fce5 100644 --- a/nipype/interfaces/fsl/utils.py +++ b/nipype/interfaces/fsl/utils.py @@ -2584,7 +2584,7 @@ def _trk_to_coords(self, in_file, out_file=None): if out_file is None: out_file, _ = op.splitext(in_file) - np.savetxt(streamlines, out_file + ".txt") + np.savetxt(out_file + ".txt", streamlines) return out_file + ".txt" def _coords_to_trk(self, points, out_file):