spatialdata
spatialdata copied to clipboard
Querying points doesn't filter the associated table
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()