Skip to content

Commit

Permalink
bug fix: colormap
Browse files Browse the repository at this point in the history
  • Loading branch information
n-poulsen committed Mar 27, 2024
1 parent ff8ae9a commit b25a473
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/napari_deeplabcut/_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1088,9 +1088,8 @@ def _update_colormap(self, colormap_name):
layer.metadata["header"], colormap_name,
)
layer.metadata["face_color_cycles"] = face_color_cycle_maps
if self.color_mode == keypoints.ColorMode.BODYPART:
face_color_prop = "label"
else:
face_color_prop = "label"
if self.color_mode == str(keypoints.ColorMode.INDIVIDUAL):
face_color_prop = "id"

layer.face_color = face_color_prop
Expand Down

0 comments on commit b25a473

Please sign in to comment.