pyRANSAC-3D icon indicating copy to clipboard operation
pyRANSAC-3D copied to clipboard

Sphere fitting gives cryptic error message if less than 4 points are provided

Open amaarquadri opened this issue 1 year ago • 0 comments

If sphere fitting is attempted with less than 4 points, this line will fail with the error message: "ValueError: Sample larger than population or is negative". This could be improved with a simple check on the number of points and a more clear error message. Here's one possible fix.

amaarquadri avatar Jul 27 '23 15:07 amaarquadri