Skip to content

fix: keep the _r suffix in the name of a reversed catalog colormap - #167

Merged
tlambert03 merged 1 commit into
pyapp-kit:mainfrom
tlambert03:fix/reversed-name
Oct 19, 2026
Merged

tlambert03 merged 1 commit into
pyapp-kit:mainfrom
tlambert03:fix/reversed-name

Conversation

@tlambert03

Copy link
Copy Markdown
Member

Colormap("viridis_r") was named bids:viridis, the same as Colormap("viridis"), so the two also shared an identifier (bids_viridis). It also made reversed() name things backwards: Colormap("viridis_r").reversed().name was "bids:viridis_r", for what is plain viridis.

The default name now keeps the suffix (bids:viridis_r). An explicit name= still wins.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tlambert03
tlambert03 enabled auto-merge (squash) October 19, 2026 17:10
@tlambert03
tlambert03 merged commit 0ac9baa into pyapp-kit:main Oct 19, 2026
23 checks passed
@tlambert03
tlambert03 deleted the fix/reversed-name branch October 19, 2026 17:12
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