Skip to content

Commit

Permalink
fix index cannot be reshaped with inner join (#832)
Browse files Browse the repository at this point in the history
fix index cannot be reshaped
  • Loading branch information
melonora authored Jan 15, 2025
1 parent 4630fa1 commit 39a10a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata/_core/query/relational_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _inner_join_spatialelement_table(
if joined_indices is not None:
joined_indices = joined_indices.dropna() if any(joined_indices.isna()) else joined_indices

joined_table = table[joined_indices, :].copy() if joined_indices is not None else None
joined_table = table[joined_indices.tolist(), :].copy() if joined_indices is not None else None

_inplace_fix_subset_categorical_obs(subset_adata=joined_table, original_adata=table)
return element_dict, joined_table
Expand Down

0 comments on commit 39a10a1

Please sign in to comment.