-
Notifications
You must be signed in to change notification settings - Fork 55
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
unexpected behavior of neighbour_list #95
Comments
Interesting, that looks like a bug. Thanks for reporting. |
I've also noticed this before: my guess is that the variable is passed straight to C without a type conversion so should be pretty easy to fix. |
Agree, there is some funkiness going on with type conversion in the C code. |
I also encountered this error, and made a change to make the error message more explicit in #91. I agree a switch to pybind11 would make things simpler and more robust. |
Will be fixed with #96 |
I just encountered behavior from neighbour_list, which I had not expected and which seems strange / undesirable to me when I call the function and give a single number for the cutoff
ValueError: object of too small depth for desired array
from _matscipy.neighbour_list.I realize that the documentation states that you can give "A single float" specifically, but I don't see an obvious reason why "5" should not be interpreted as "5.0".
The text was updated successfully, but these errors were encountered: