Skip to content

Commit

Permalink
test passing
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Oct 9, 2023
1 parent 0bf2353 commit b9a1fc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/spatialdata/_core/data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,14 @@ def _(
assert isinstance(transformations, dict)
coordinate_systems = list(transformations.keys())
if coordinate_system in coordinate_systems:
# kwargs = {"exact": exact} if isinstance(element_obj, (DaskDataFrame, GeoDataFrame)) else {}
# extent = get_extent(element_obj, coordinate_system=coordinate_system, **kwargs)

if isinstance(element_obj, (DaskDataFrame, GeoDataFrame)):
extent = get_extent(element_obj, coordinate_system=coordinate_system)
else:
extent = get_extent(element_obj, coordinate_system=coordinate_system, exact=exact)
else:
extent = get_extent(element_obj, coordinate_system=coordinate_system)

axes = list(extent.keys())
for ax in axes:
new_min_coordinates_dict[ax] += [extent[ax][0]]
Expand Down
3 changes: 2 additions & 1 deletion tests/core/test_data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def test_rotate_vector_data(exact):
To test for the ability to correctly compute the exact and approximate extent of vector datasets.
In particular tests for the solution to this issue: https://github.com/scverse/spatialdata/issues/353
"""
import spatialdata_plot

# _ = spatialdata_plot
_ = spatialdata_plot
circles = []
for p in [[0.5, 0.1], [0.9, 0.5], [0.5, 0.9], [0.1, 0.5]]:
circles.append(Point(p))
Expand Down

0 comments on commit b9a1fc4

Please sign in to comment.