Skip to content

Commit

Permalink
removed plots
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Oct 9, 2023
1 parent b9a1fc4 commit 3ddc378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/spatialdata/_core/data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
7 changes: 3 additions & 4 deletions tests/core/test_data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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]:
Expand Down

0 comments on commit 3ddc378

Please sign in to comment.