Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#705)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.8](astral-sh/ruff-pre-commit@v0.6.3...v0.6.8)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 1, 2024
1 parent b2c34c2 commit f492f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
additional_dependencies: [numpy, types-requests]
exclude: tests/|docs/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion src/spatialdata/_core/operations/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _aggregate_image_by_labels(

X = sparse.csr_matrix(df.values)

index = kwargs.get("zone_ids", None) # `zone_ids` allows the user to select specific labels to aggregate by
index = kwargs.get("zone_ids") # `zone_ids` allows the user to select specific labels to aggregate by
if index is None:
index = np.array(da.array.unique(by.data))
assert np.array(index == np.insert(zones, 0, 0)).all(), "Index mismatch between zonal stats and labels."
Expand Down

0 comments on commit f492f55

Please sign in to comment.