Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Oct 10, 2023
1 parent 3ddc378 commit b15827c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/core/test_data_extent.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ 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
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 @@ -170,12 +168,6 @@ def test_rotate_vector_data(exact):
for element_name in ["circles", "polygons", "multipolygons", "points"]:
set_transformation(element=sdata[element_name], transformation=rotation, to_coordinate_system="transformed")

# sdata.pl.render_shapes("circles").pl.show()
# 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()

# manually computing the extent results and verifying it is correct
for e in [sdata, circles_gdf, polygons_gdf, multipolygons_gdf, points_df]:
extent = get_extent(e, coordinate_system="global")
Expand Down Expand Up @@ -256,8 +248,6 @@ def test_get_extent_affine_circles():
for ax in axes:
assert not np.allclose(extent[ax], transformed_extent[ax])

# min_coordinates, max_coordinates, axes = extent

# Create a list of points
points = [
(extent["x"][0], extent["y"][0]), # lower left corner
Expand Down

0 comments on commit b15827c

Please sign in to comment.