scverse/spatialdata

Querying points doesn't filter the associated table

Opened this issue · 1 comments

When performing a query on points, the associated table is not filtered. This is bug is due to the fact that originally points couldn't be annotated by a table.

A workaround is trivial, for instance:

sdata_crop["my_table"] = sdata["my_table"]
queried_points = sdata_crop["my_points"].index.compute()
sdata_crop["my_table"] = sdata_crop["my_table"][queried_points].copy()