Skip to content

Commit 25d5ba0

Browse files
committed
BF: always save data in <f4
1 parent c6e06d9 commit 25d5ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/streamlines/tck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def save(self, fileobj):
220220
tractogram = self.tractogram.to_world(lazy=True)
221221

222222
for t in tractogram:
223-
s = t.streamline.astype(dtype)
223+
s = t.streamline
224224
data = np.r_[s, self.FIBER_DELIMITER]
225-
f.write(data.tostring())
225+
f.write(data.astype(dtype).tostring())
226226
nb_streamlines += 1
227227

228228
header[Field.NB_STREAMLINES] = nb_streamlines

0 commit comments

Comments
 (0)