-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure named_objs does not fail on unhashable objects #632
Conversation
Codecov Report
@@ Coverage Diff @@
## master #632 +/- ##
==========================================
- Coverage 82.91% 82.86% -0.06%
==========================================
Files 5 5
Lines 3073 3081 +8
==========================================
+ Hits 2548 2553 +5
- Misses 525 528 +3
Continue to review full report at Codecov.
|
Even if an explicit namesdict has been provided, it isn't required to be complete. Where that matters is if |
The rest of the code being what in this case? Panel already does and afaik that's the only thing that actually uses the names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As revised this seems ok to merge, though really Selector needs to just store proper mappings as outlined in other PRs and issues...
Not all objects are hashable so the
named_objs
implementation has started causing some errors (e.g. because mpl colormaps aren't hashable anymore). For unhashable objects we try to reverse map the objects by identity.