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

Fix warning in test regarding division by zero in point gravity potential #117

Open
santisoler opened this issue Feb 6, 2025 · 0 comments

Comments

@santisoler
Copy link
Member

Would be nice to get rid of this warning in the tests:

choclo/tests/test_point_gravity.py::TestSymmetryPotential::test_infinite_potential
  /home/santi/git/choclo/choclo/point/_kernels.py:58: RuntimeWarning: divide by zero encountered in scal
ar divide
    return 1 / distance
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

No branches or pull requests

1 participant