-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update colormap handling to avoid deprecation issue #41
Comments
Resetting the whole colormap works well by using this:
=> provide a DirectLabelColormap object with a given colormap instead of just setting the colormap dict directly & changing the mode What doesn't work as simple as before is updating a single item only. If a user clicks on a label, we used to update the just that value in the dictionary. We can still do this by calling:
But that does not show up in the interface afterwards. We see that the What does work is providing a full new
This then updates the colors of the annotation layer. But the performance already looks somewhat slow on our tiny test dataset |
What we tried that did not work:
|
With napari 0.4.19, we run into the following deprecation warnings:
We're addressing this in #40.
The text was updated successfully, but these errors were encountered: