Skip to content

Commit

Permalink
skip for old GEOS
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Jan 30, 2024
1 parent 1c4c46e commit 339435e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pointpats/tests/test_centrography.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# TODO: skyum, dtot, weighted_mean_center, manhattan_median
import unittest
import numpy as np
import shapely
import pytest

from ..centrography import *

Expand All @@ -26,6 +28,10 @@ def setUp(self):
]
)

@pytest.mark.skipif(
shapely.geos_version < (3, 12, 0),
reason="Requires GEOS 3.12.0 to use correct algorithm"
)
def test_centrography_mar(self):
mrr = minimum_rotated_rectangle(self.points)
known = np.array(
Expand Down

0 comments on commit 339435e

Please sign in to comment.