diff --git a/src/spatialdata/_core/data_extent.py b/src/spatialdata/_core/data_extent.py index 186c7d2c..eb77c771 100644 --- a/src/spatialdata/_core/data_extent.py +++ b/src/spatialdata/_core/data_extent.py @@ -217,14 +217,10 @@ 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, 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]] diff --git a/tests/core/test_data_extent.py b/tests/core/test_data_extent.py index 6536987a..82973b4b 100644 --- a/tests/core/test_data_extent.py +++ b/tests/core/test_data_extent.py @@ -125,9 +125,8 @@ 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 + # import 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)) @@ -175,7 +174,7 @@ def test_rotate_vector_data(exact): # sdata.pl.render_shapes("polygons").pl.show() # sdata.pl.render_shapes("multipolygons").pl.show() # sdata.pl.render_points("points", size=10).pl.show() - sdata.pl.render_points().pl.render_shapes().pl.show() + # sdata.pl.render_points().pl.render_shapes().pl.show() # manually computing the extent results and verifying it is correct for e in [sdata, circles_gdf, polygons_gdf, multipolygons_gdf, points_df]: