Skip to content

Commit

Permalink
update colromap limit for label curator (morphometrics#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinyamauchi committed Mar 30, 2023
1 parent 871fb23 commit 76e13c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/morphometrics/_gui/label_curator/label_curator.py
Expand Up @@ -39,7 +39,7 @@ def _initialize_colormaps(
colors_highlight = np.column_stack((colors, np.ones((len(colors),))))
colors_highlight_cycler = cycle(colors_highlight)

colormap_highlight = {i: next(colors_highlight_cycler) for i in range(5000)}
colormap_highlight = {i: next(colors_highlight_cycler) for i in range(6000)}
colormap_highlight[0] = np.array([0, 0, 0, 0])
colormap_highlight[None] = np.array([0, 0, 0, 1])

Expand All @@ -48,7 +48,7 @@ def _initialize_colormaps(
colors_default[:, 0:3] = colors_default[:, 0:3] * 0.7

colors_default_cylcer = cycle(colors_default)
colormap_default = {i: next(colors_default_cylcer) for i in range(2000)}
colormap_default = {i: next(colors_default_cylcer) for i in range(6000)}
colormap_default[0] = np.array([0, 0, 0, 0])
colormap_default[None] = np.array([0, 0, 0, 1])

Expand Down

0 comments on commit 76e13c5

Please sign in to comment.