We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6e06d9 + c8b3479 commit f5dec18Copy full SHA for f5dec18
nibabel/streamlines/tck.py
@@ -220,9 +220,8 @@ def save(self, fileobj):
220
tractogram = self.tractogram.to_world(lazy=True)
221
222
for t in tractogram:
223
- s = t.streamline.astype(dtype)
224
- data = np.r_[s, self.FIBER_DELIMITER]
225
- f.write(data.tostring())
+ data = np.r_[t.streamline, self.FIBER_DELIMITER]
+ f.write(data.astype(dtype).tostring())
226
nb_streamlines += 1
227
228
header[Field.NB_STREAMLINES] = nb_streamlines
0 commit comments