From 6aafc5b0cbc4d7f69299d17fde58ab7b6881dda1 Mon Sep 17 00:00:00 2001 From: Jingxuan He Date: Wed, 15 Jun 2022 18:41:04 +0200 Subject: [PATCH] Fix a bug about wrong order of function arguments --- nipype/interfaces/fsl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):