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

Expose 3d eye model RMS fitting residuals; disable them by default #24

Merged
merged 4 commits into from
Mar 9, 2021

Conversation

papr
Copy link
Contributor

@papr papr commented Mar 9, 2021

Currently, the rms residual is always calculated but not used anywhere. To save performance, we disable this calculation by default. It can be enabled anywhere in the calculation chain:

  • Detector3D()
  • TwoSphereModel.estimate_sphere_center()
  • TwoSphereModel.estimate_sphere_center_3d()

TwoSphereModel.estimate_sphere_center() returns a SphereCenterEstimates named tuple which was extended with a rms_residual field. This field is filled with a float if the function was called with calculate_rms_residual=True, else it is either filled with None or NaN.

papr added 4 commits March 9, 2021 12:39
Currently, the rms residual is always calculated but not used anywhere. To save performance, we disable this calculation by default. It can be enabled anywhere in the calculation chain:
- `Detector3D()`
- `TwoSphereModel.estimate_sphere_center()`
- `TwoSphereModel.estimate_sphere_center_3d()`

`TwoSphereModel.estimate_sphere_center()` returns a `SphereCenterEstimates` named tuple which was extended with a `rms_residual` field. This field is filled with a float if the function was called with `calculate_rms_residual=True`, else it is either filled with `None` or `NaN`.
@papr papr merged commit f0e5259 into master Mar 9, 2021
@papr papr deleted the rms_residuals branch March 9, 2021 13:11
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.

None yet

1 participant