Skip to content

Commit 12e00cc

Browse files
unidesignermatthew-brett
authored andcommitted
BF - Reading binary encoded Gifti without line break
1 parent 435193c commit 12e00cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/gifti/parse_gifti_fast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def read_data_block(encoding, endian, ordering, datatype, shape, data):
4444
dec = base64.decodestring(data.encode('ascii'))
4545
dt = data_type_codes.type[datatype]
4646
sh = tuple(shape)
47-
newarr = np.fromstring(zdec, dtype = dt, sep = '\n', count = c)
47+
newarr = np.fromstring(dec, dtype = dt)
4848
if len(newarr.shape) == len(sh):
4949
return newarr
5050
else:

0 commit comments

Comments
 (0)