Skip to content

Commit 74afb01

Browse files
Sonja-StockhausSonja Stockhaustimtreis
authored
Bug when plotting shapes after spatial query (#177)
* drop old index when resetting * removed notebook * Added changelog --------- Co-authored-by: Sonja Stockhaus <[email protected]> Co-authored-by: Tim Treis <[email protected]>
1 parent f73e4a3 commit 74afb01

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning][].
1818

1919
### Fixed
2020

21+
- Now dropping index when plotting shapes after spatial query (#177)
22+
2123
## [0.0.6] - 2023-11-06
2224

2325
### Added

src/spatialdata_plot/pl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _get_collection_shape(
229229
shapes_df = shapes_df[shapes_df["geometry"].apply(lambda geom: not geom.is_empty)]
230230

231231
# reset index of shapes_df for case of spatial query
232-
shapes_df = shapes_df.reset_index()
232+
shapes_df = shapes_df.reset_index(drop=True)
233233

234234
rows = []
235235

test_sandbox_data.ipynb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)