-
Notifications
You must be signed in to change notification settings - Fork 10
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
Avoid using Labels.color #307
Comments
Hi all, |
Hi @gboscagli ! |
That's what I did, I'm in contact with Napari-SpatialData developers and they indeed confirmed it's on the roadmap. By the way, I updated Napari to 0.5.0 and the problem remains, so in the case of SpatialData it's probably matter of internal metadata. Thanks for the response! |
Fixed via #308 |
With napari 0.4.19, this warnings pops up after manually selecting a cluster
FutureWarning: Labels.color is deprecated since 0.4.19 and will be removed in 0.5.0, please set Labels.colormap directly with an instance of napari.utils.colormaps.DirectLabelColormap instead.!
It may be solved by replacing at least this line, this line and this line with something like:
layer_in_viewer.colormap= self.visualized_layer.colormap
and
"colormap": DirectLabelColormap(color_dict=cmap_dict),
This needs to be tested.
The text was updated successfully, but these errors were encountered: