Skip to content

Commit 354b55b

Browse files
committed
remove match_rows
1 parent 5137520 commit 354b55b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ def _render_shapes(
8080
table = None
8181
shapes = sdata_filt[element]
8282
else:
83-
element_dict, joined_table = join_spatialelement_table(
84-
sdata, spatial_element_names=element, table_name=table_name, how="inner", match_rows="left"
85-
)
83+
element_dict, joined_table = join_spatialelement_table(sdata, spatial_element_names=element, table_name=table_name,
84+
how="inner")
8685
sdata_filt[element] = shapes = element_dict[element]
8786
sdata_filt[table_name] = joined_table
8887
_, region_key, _ = get_table_keys(sdata[table_name])
8988
table = sdata_filt[table_name][sdata[table_name].obs[region_key].isin([element])]
9089

90+
9191
if (
9292
col_for_color is not None
9393
and table_name is not None

tests/pl/test_render_shapes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ def test_plot_can_plot_shapes_after_spatial_query(self, sdata_blobs: SpatialData
169169
cropped_blob.pl.render_shapes().pl.show()
170170

171171
def test_plot_can_plot_with_annotation_despite_random_shuffling(self, sdata_blobs: SpatialData):
172-
new_table = sdata_blobs["table"].copy()
173172
sdata_blobs["table"].obs["region"] = "blobs_circles"
174173
new_table = sdata_blobs["table"][:5]
175174
new_table.uns["spatialdata_attrs"]["region"] = "blobs_circles"

0 commit comments

Comments
 (0)