scverse / napari-spatialdata

Interactive visualization of spatial omics data
https://spatialdata.scverse.org/projects/napari/en/latest/
BSD 3-Clause "New" or "Revised" License
36 stars 15 forks source link

Problem when plotting certain points annotations columns #287

Open LucaMarconato opened 1 month ago

LucaMarconato commented 1 month ago

Plotting certain dataframe annotation columns into the points leads to an error.

Easy to reproduce:

from spatialdata.datasets import blobs
from napari_spatialdata import Interactive

Interactive(blobs())

The annotation:

AttributeError: 'NoneType' object has no attribute 'uns'

BioinfoTongLI commented 1 day ago

having exactly this issue. Any quick fix?

melonora commented 12 hours ago

I would have time to look tomorrow afternoon but I think this is an easy fix