Skip to content

Commit b2474cf

Browse files
mwaskomlarsoner
authored andcommitted
Set annotation LUT directly (#271)
1 parent b9a7dd6 commit b2474cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfer/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3304,7 +3304,7 @@ def add_annotation(self, annot, ids, cmap):
33043304

33053305
# Set the color table
33063306
l_m = surf.module_manager.scalar_lut_manager
3307-
l_m.load_lut_from_list(cmap / 255.)
3307+
l_m.lut.table = np.round(cmap).astype(np.uint8)
33083308

33093309
# Set the brain attributes
33103310
return dict(surface=surf, name=annot, colormap=cmap, brain=self,

0 commit comments

Comments
 (0)