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

Bug fix in detector pointing calculation #79

Merged
merged 1 commit into from
Jul 26, 2022
Merged

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Jul 26, 2022

On rare occasions, the rotation angle about the boresight is computed as nan,
due to round-off error causing the argument to acos to fall outside the valid
range [-1, 1]. This PR addresses this rare edge case by specifically handling
the cases where acos argument is outside the valid range.

On rare occasions, the rotation angle about the boresight is computed as nan,
due to round-off error causing the argument to acos to fall outside the valid
range [-1, 1].  This PR addresses this rare edge case by specifically handling
the cases where acos argument is outside the valid range.
@arahlin arahlin requested a review from nwhitehorn July 26, 2022 07:05
@arahlin arahlin self-assigned this Jul 26, 2022
@arahlin arahlin merged commit a6b98d0 into master Jul 26, 2022
@arahlin arahlin deleted the pointing_rot_ang_fix branch July 26, 2022 14:06
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.

2 participants