Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Jun 21, 2024
1 parent 77fd273 commit 7e6f45d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/spatialdata/_core/data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,14 @@ def _get_extent_of_points(e: DaskDataFrame) -> BoundingBoxDescription:


def _get_extent_of_data_array(e: DataArray, coordinate_system: str) -> BoundingBoxDescription:
# TODO lightweight conversion to SpatialImage just to fix the type of the single-dispatch
_check_element_has_coordinate_system(element=e, coordinate_system=coordinate_system)
# TODO also here
data_axes = get_axes_names(e)
extent: BoundingBoxDescription = {}
for ax in ["z", "y", "x"]:
if ax in data_axes:
i = data_axes.index(ax)
extent[ax] = (0, e.shape[i])
return _compute_extent_in_coordinate_system(
# TODO and here
element=e,
coordinate_system=coordinate_system,
extent=extent,
Expand Down

0 comments on commit 7e6f45d

Please sign in to comment.