Skip to content

Commit

Permalink
fix index error left join (#833)
Browse files Browse the repository at this point in the history
* fix index cannot be reshaped

* fix index problem left join
  • Loading branch information
melonora authored Jan 16, 2025
1 parent 0bed63b commit ae71ae1
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 @@ -484,7 +484,7 @@ def _left_join_spatialelement_table(
# if nan were present, the dtype would have been changed to float
if joined_indices.dtype == float:
joined_indices = joined_indices.astype(int)
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 ae71ae1

Please sign in to comment.