Skip to content

Commit

Permalink
rename intersections_many_threaded2
Browse files Browse the repository at this point in the history
  • Loading branch information
clbarnes committed Jan 10, 2024
1 parent 14089a3 commit aa03122
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/ncollpyde/_ncollpyde.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TriMeshWrapper:
def intersections_many(
self, src_points: Points, tgt_points: Points
) -> tuple[npt.NDArray[np.uint64], Points, npt.NDArray[np.bool_]]: ...
def intersections_many_threaded2(
def intersections_many_threaded(
self, src_points: Points, tgt_points: Points
) -> tuple[npt.NDArray[np.uint64], Points, npt.NDArray[np.bool_]]: ...
def sdf_intersections(
Expand Down
2 changes: 1 addition & 1 deletion python/ncollpyde/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def intersections(
src, tgt = self._validate_points(src_points, tgt_points)

if self._interpret_threads(threads):
return self._impl.intersections_many_threaded2(src, tgt)
return self._impl.intersections_many_threaded(src, tgt)
else:
return self._impl.intersections_many(src, tgt)

Expand Down
2 changes: 1 addition & 1 deletion src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl TriMeshWrapper {
)
}

pub fn intersections_many_threaded2<'py>(
pub fn intersections_many_threaded<'py>(
&self,
py: Python<'py>,
src_points: PyReadonlyArray2<Precision>,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def test_ncollpyde_intersection(mesh, benchmark, threads):
@pytest.mark.parametrize(
("method_name",),
[
# ("intersections_many_threaded",),
("intersections_many_threaded2",),
("intersections_many_threaded",),
# ("intersections_many_threaded2",),
],
)
def test_ncollpyde_intersection_impls(mesh, benchmark, method_name):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ncollpyde.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,5 @@ def test_intersections_impls(volume: Volume):
serial = volume.intersections(starts, stops, threads=False)
par = volume.intersections(starts, stops, threads=True)
assert_intersection_results(serial, par)
par2 = volume._impl.intersections_many_threaded2(starts, stops)
par2 = volume._impl.intersections_many_threaded(starts, stops)
assert_intersection_results(serial, par2)

0 comments on commit aa03122

Please sign in to comment.