Skip to content

Commit

Permalink
Merge pull request #44 from jnolan14/patch-01
Browse files Browse the repository at this point in the history
Fixed issue reading binary lookup table
  • Loading branch information
jnolan14 authored Dec 3, 2024
2 parents 4690918 + 2ba8007 commit e266bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfa/io/fsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def read_binary_lookup_table(file):
file_name_size = iou.read_bytes(file, '>i4')
# if the file comes from surfa.io.fsio.write_binary_lookup_table(), file_name_size = 0.
# if the file comes from freesurfer/utils/colortab.cpp::znzCTABwriteIntoBinaryV2(), file_name_size > 0.
file.read(file_name_size).decode('utf-8')
file.read(file_name_size)#.decode('utf-8')

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

0 comments on commit e266bfb

Please sign in to comment.