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.
1 parent 0bd3a82 commit ce2a2e9Copy full SHA for ce2a2e9
nibabel/streamlines/tck.py
@@ -241,7 +241,7 @@ def _write_header(fileobj, header):
241
lines.append("datatype: Float32LE") # We always use Float32LE to save TCK files.
242
lines.extend(["{0}: {1}".format(k, v) for k, v in header.items() if k not in exclude])
243
lines.append("file: . ") # Manually add this last field.
244
- out = "\n".join((line.replace('\n', '\t') for line in lines))
+ out = "\n".join((asstr(line).replace('\n', '\t') for line in lines))
245
fileobj.write(asbytes(out))
246
247
# Compute offset to the beginning of the binary data
0 commit comments