Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2024
1 parent 8c2a96f commit 9493855
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/spatialdata/_core/query/spatial_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ def _(
max_coordinate = _parse_list_into_array(max_coordinate)
new_elements = {}
if len(sdata.points) > 0:
warnings.warn(f"Your SpatialData object has points element. Thus maybe suffer from performance issues when querying.", UserWarning)
warnings.warn(
"Your SpatialData object has points element. Thus maybe suffer from performance issues when querying.",
UserWarning,
)
for element_type in ["points", "images", "labels", "shapes"]:
elements = getattr(sdata, element_type)
queried_elements = _dict_query_dispatcher(
Expand Down

0 comments on commit 9493855

Please sign in to comment.