Skip to content

Commit

Permalink
debug contains
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Aug 17, 2024
1 parent 00b0292 commit b955480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["maturin>=1.4"]
build-backend = "maturin"

[tool.maturin]
features = [ "extension-module" ]
features = [ "extension-module", "simd", "nightly" ]

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down
1 change: 1 addition & 0 deletions src/shapes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl Gshhg {
let p = point!(x: x, y: y);
// self.geom.locate_at_point(&p).is_some()
// self.geom.relate(&p).is_contains()
println!("contains unchecked");
self.geom.relate(&p).is_covers()
}

Expand Down
4 changes: 2 additions & 2 deletions tests/test_dateline.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_dateline():

xx, yy = np.meshgrid(x, y)
xx, yy = xx.ravel(), yy.ravel()
mm = mask.contains_many(xx, yy)
mm = mask.contains_many_par(xx, yy)

# Offset
x2 = np.linspace(180, 540, 100)
Expand All @@ -18,7 +18,7 @@ def test_dateline():

xx, yy = np.meshgrid(x2, y2)
xx, yy = xx.ravel(), yy.ravel()
MM = mask.contains_many(xx, yy)
MM = mask.contains_many_par(xx, yy)

np.testing.assert_array_equal(mm, MM)

0 comments on commit b955480

Please sign in to comment.