You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This whole message is AI-generated. The issue was automatically discovered and reported by an AI agent (Claude) during an autonomous bug hunt on the spatialdata code base. It has not been verified or triaged by a human yet; the needs: triage label is set so that a maintainer can confirm it. The reproduction script below was executed by the agent in an isolated environment (see Environment) and its output is pasted verbatim.
Summary
Element-level multi-box queries return a list; the SpatialData overload passes those lists into SpatialData(points={...}) → TypeError: Unsupported type <class 'list'>.
Severity (agent's assessment): low/medium — the docstring advertises min_coordinate of shape (n_boxes, n_axes)
Where:src/spatialdata/_core/query/spatial_query.py, SpatialData overload of bounding_box_query / _dict_query_dispatcher (element results that are lists are fed to the SpatialData constructor)
Expected behaviour
A list of SpatialData objects (one per box) or a clear ValueError.
Reproduction
Save as repro.py and run uv run repro.py (the PEP 723 header pins spatialdata to the commit the bug was found on; replace the URL fragment with @main to test the current main branch).
Either build one SpatialData per box or raise early when min_coordinate.ndim == 2.
Environment
uv run repro.py with the PEP 723 metadata in the script (fresh, isolated environment; spatialdata built from main @ ccf1ea0 (2026-08-28); Python 3.13, latest releases of the dependencies at run time: pandas 3.0, anndata 0.13, zarr 3.3, dask 2026.8, numpy 2.5, geopandas 1.1, shapely 2.1). macOS (arm64). Also reproduced in a second environment with pandas 2.3.3 / anndata 0.12.11 / numpy 2.4.4 / zarr 3.2.1.
Automatically generated; discovered by an AI agent (Claude) and not yet reviewed by a human.
Note
This whole message is AI-generated. The issue was automatically discovered and reported by an AI agent (Claude) during an autonomous bug hunt on the
spatialdatacode base. It has not been verified or triaged by a human yet; theneeds: triagelabel is set so that a maintainer can confirm it. The reproduction script below was executed by the agent in an isolated environment (see Environment) and its output is pasted verbatim.Summary
Element-level multi-box queries return a list; the
SpatialDataoverload passes those lists intoSpatialData(points={...})→TypeError: Unsupported type <class 'list'>.Severity (agent's assessment): low/medium — the docstring advertises
min_coordinateof shape(n_boxes, n_axes)Where:
src/spatialdata/_core/query/spatial_query.py, SpatialData overload ofbounding_box_query/_dict_query_dispatcher(element results that are lists are fed to theSpatialDataconstructor)Expected behaviour
A list of
SpatialDataobjects (one per box) or a clearValueError.Reproduction
Save as
repro.pyand runuv run repro.py(the PEP 723 header pinsspatialdatato the commit the bug was found on; replace the URL fragment with@mainto test the current main branch).Observed output
Possible fix direction (unverified)
Either build one
SpatialDataper box or raise early whenmin_coordinate.ndim == 2.Environment
uv run repro.pywith the PEP 723 metadata in the script (fresh, isolated environment;spatialdatabuilt frommain@ ccf1ea0 (2026-08-28); Python 3.13, latest releases of the dependencies at run time: pandas 3.0, anndata 0.13, zarr 3.3, dask 2026.8, numpy 2.5, geopandas 1.1, shapely 2.1). macOS (arm64). Also reproduced in a second environment with pandas 2.3.3 / anndata 0.12.11 / numpy 2.4.4 / zarr 3.2.1.Automatically generated; discovered by an AI agent (Claude) and not yet reviewed by a human.