Skip to content

Fix colormap generation and selection stability#595

Open
GoulagmanYt wants to merge 1 commit intoonlaj:masterfrom
GoulagmanYt:master
Open

Fix colormap generation and selection stability#595
GoulagmanYt wants to merge 1 commit intoonlaj:masterfrom
GoulagmanYt:master

Conversation

@GoulagmanYt
Copy link
Contributor

-Fixed lazy colormap generation (no double-lock) and ensured all packaged gradients (agama/cmasher/cmocean/colorcet/hpluv/matplotlib) generate on demand with current LED gamma.

-Normalized handling of colormap names while keeping raw LCD values (e.g., “Rainbow ”) so both web UI and LCD can switch colormaps without crashes or stale lookups.

-On change (web or LCD), colormaps are now generated immediately; Rainbow/Velocity modes force-safe fallback if a LUT is missing.

Fixed lazy colormap generation (no double-lock) and ensured all packaged gradients (agama/cmasher/cmocean/colorcet/hpluv/matplotlib) generate on demand with current LED gamma.
Normalized handling of colormap names while keeping raw LCD values (e.g., “Rainbow ”) so both web UI and LCD can switch colormaps without crashes or stale lookups.
On change (web or LCD), colormaps are now generated immediately; Rainbow/Velocity modes force-safe fallback if a LUT is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant