Skip to content

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

Open
@amaarquadri

Description

@amaarquadri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions