Skip to content

Commit 577338d

Browse files
committed
Avoiding errors while loading FreeSurferColorLUT.txt from a container
1 parent c1b8ccc commit 577338d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clabtoolkit/freesurfertools.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3991,14 +3991,6 @@ def surf2vol(
39913991
# print them as integer numbers
39923992
unique_vals = unique_vals.astype(int)
39933993

3994-
fs_colortable = os.path.join(
3995-
os.environ.get("FREESURFER_HOME"), "FreeSurferColorLUT.txt"
3996-
)
3997-
lut_dict = cltparc.Parcellation.read_luttable(in_file=fs_colortable)
3998-
fs_codes = lut_dict["index"]
3999-
fs_names = lut_dict["name"]
4000-
fs_colors = lut_dict["color"]
4001-
40023994
values, idx = cltmisc.ismember_from_list(fs_codes, unique_vals.tolist())
40033995

40043996
# select the fs_names and fs_colors in the indexes idx

0 commit comments

Comments
 (0)