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 a85f4a0 commit 5a71493Copy full SHA for 5a71493
nibabel/streamlines/tck.py
@@ -270,10 +270,11 @@ def _write_header(fileobj, header):
270
out = header[Field.MAGIC_NUMBER] + b"\n" + out.encode('utf-8')
271
272
# Compute data offset considering the offset string representation
273
- hdr_offset = len(out) + 8 + 3 + 3 # "file" header, END, and \n's
+ # headers + "file" header + END + \n's
274
+ hdr_offset = len(out) + 8 + 3 + 3
275
offset_repr = f'{hdr_offset}'
276
- # Adding the offset increases one char to the offset repr
277
+ # Adding the offset may increase one char to the offset repr
278
hdr_offset += len(f'{hdr_offset + len(offset_repr)}')
279
280
# Write header to file.
0 commit comments