From 2ba800710a821d43a3d3fcff7d4fc6642a3a23b3 Mon Sep 17 00:00:00 2001 From: Jackson Nolan Date: Tue, 3 Dec 2024 11:03:08 -0500 Subject: [PATCH] Fixed issue reading binary lookup table --- surfa/io/fsio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfa/io/fsio.py b/surfa/io/fsio.py index ae1a2e1..6552bf3 100644 --- a/surfa/io/fsio.py +++ b/surfa/io/fsio.py @@ -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: