Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions python/tests/geopandas/test_geoseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -5373,7 +5373,7 @@ def test_scale_3d_explicit_origin(self, origin, expected_coordinates):
result = source.scale(xfact=2, yfact=3, zfact=4, origin=origin)

line = result.to_geopandas().iloc[0]
assert list(line.coords) == pytest.approx(expected_coordinates)
assert list(line.coords) == [pytest.approx(c) for c in expected_coordinates]

def test_scale_2d_stays_2d_with_3d_parameters(self):
geoms = [
Expand Down Expand Up @@ -5545,9 +5545,9 @@ def test_skew_degrees_radians_and_180_degree_clamp(self):
clamped = source.skew(180, 180, origin=(0, 0)).to_geopandas().iloc[0]

expected = [(0.0, 0.0), (6.0, 5.1547005383792515)]
assert list(degrees.coords) == pytest.approx(expected)
assert list(radians.coords) == pytest.approx(expected)
assert list(numpy_bool_radians.coords) == pytest.approx(expected)
assert list(degrees.coords) == [pytest.approx(c) for c in expected]
assert list(radians.coords) == [pytest.approx(c) for c in expected]
assert list(numpy_bool_radians.coords) == [pytest.approx(c) for c in expected]
assert list(clamped.coords) == [(0.0, 0.0), (2.0, 4.0)]

@pytest.mark.parametrize(
Expand Down Expand Up @@ -5600,7 +5600,7 @@ def test_skew_explicit_origins_ignore_z(self, origin):

line = result.to_geopandas().iloc[0]
assert line.has_z
assert list(line.coords) == pytest.approx([(2, 2, 3), (9, 9, 9)])
assert list(line.coords) == [pytest.approx(c) for c in [(2, 2, 3), (9, 9, 9)]]
assert [coordinate[2] for coordinate in line.coords] == [3.0, 9.0]

def test_skew_2d_stays_2d_with_3d_origin(self):
Expand Down
Loading