From 25d5ba02816eb36427095d706afc92e50baaf474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Alexandre=20C=C3=B4t=C3=A9?= Date: Mon, 3 Jul 2017 18:29:08 -0400 Subject: [PATCH 1/2] BF: always save data in Date: Tue, 4 Jul 2017 19:48:30 -0400 Subject: [PATCH 2/2] RF: save a line :P --- nibabel/streamlines/tck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nibabel/streamlines/tck.py b/nibabel/streamlines/tck.py index cdd0b40f22..3b50949005 100644 --- a/nibabel/streamlines/tck.py +++ b/nibabel/streamlines/tck.py @@ -220,8 +220,7 @@ def save(self, fileobj): tractogram = self.tractogram.to_world(lazy=True) for t in tractogram: - s = t.streamline - data = np.r_[s, self.FIBER_DELIMITER] + data = np.r_[t.streamline, self.FIBER_DELIMITER] f.write(data.astype(dtype).tostring()) nb_streamlines += 1