Skip to content

Commit e266bfb

Browse files
authored
Merge pull request #44 from jnolan14/patch-01
Fixed issue reading binary lookup table
2 parents 4690918 + 2ba8007 commit e266bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfa/io/fsio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def read_binary_lookup_table(file):
125125
file_name_size = iou.read_bytes(file, '>i4')
126126
# if the file comes from surfa.io.fsio.write_binary_lookup_table(), file_name_size = 0.
127127
# if the file comes from freesurfer/utils/colortab.cpp::znzCTABwriteIntoBinaryV2(), file_name_size > 0.
128-
file.read(file_name_size).decode('utf-8')
128+
file.read(file_name_size)#.decode('utf-8')
129129

130130
total = iou.read_bytes(file, '>i4')
131131
if total < 1:

0 commit comments

Comments
 (0)