Skip to content

fix: correct LinearSegmentedColormap typo and guard colormap re-registration - #436

Merged
olemke merged 1 commit into
atmtools:masterfrom
m-brath:fix-colormap-reregistration
Oct 28, 2026
Merged

olemke merged 1 commit into
atmtools:masterfrom
m-brath:fix-colormap-reregistration

Conversation

@m-brath

@m-brath m-brath commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Re-registering an already registered colormap name raises ValueError, which breaks module reloads (e.g. Spyder's module reloader). Also fix the mpl.colorsLinearSegmentedColormap typo in the dict branch, which was currently dead code but would raise AttributeError for dict-based colormaps.

…tration

Re-registering an already registered colormap name raises ValueError,
which breaks module reloads (e.g. Spyder's module reloader). Also fix
the mpl.colorsLinearSegmentedColormap typo in the dict branch, which
was currently dead code but would raise AttributeError for dict-based
colormaps.
@olemke
olemke force-pushed the fix-colormap-reregistration branch from 4c60308 to 0a01224 Compare October 28, 2026 12:38
@olemke
olemke merged commit 61f0cb1 into atmtools:master Oct 28, 2026
9 checks passed
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.

2 participants