Skip to content

Commit

Permalink
density feature now indexed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ckmah committed Oct 15, 2024
1 parent da1ceff commit d4d4071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bento/tools/_shape_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def density(sdata: SpatialData, shape_key: str, recompute: bool = False):
.query(f"{shape_key} != 'None'")[shape_key]
.value_counts()
.compute()
.reindex_like(sdata.shapes[shape_key])
)
area(sdata, shape_key)

Expand Down

0 comments on commit d4d4071

Please sign in to comment.