Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: some predicates #18

Merged
merged 6 commits into from
Mar 9, 2023
Merged

add: some predicates #18

merged 6 commits into from
Mar 9, 2023

Conversation

ccalvocm
Copy link
Contributor

@ccalvocm ccalvocm commented Mar 8, 2023

Add some predicates to spherely like within and disjoint.

Copy link
Owner

@benbovy benbovy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @ccalvocm! I have just two minor comments for the docstrings and then I think it's good to go.

src/predicates.cpp Outdated Show resolved Hide resolved
@@ -62,7 +78,7 @@ void init_predicates(py::module& m) {

m.def("contains", py::vectorize(&contains), py::arg("a"), py::arg("b"),
R"pbdoc(
Returns True if B is completely inside A.
Returns True if A is completely inside B.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original description is the correct one?

@benbovy
Copy link
Owner

benbovy commented Mar 8, 2023

@ccalvocm could you please add the two functions added in this PR in the documentation (API reference)? It's here: https://github.com/benbovy/spherely/blob/main/docs/api.rst#predicates.

@benbovy benbovy merged commit 0b7d3bb into benbovy:main Mar 9, 2023
@benbovy
Copy link
Owner

benbovy commented Mar 9, 2023

Thanks again @ccalvocm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants