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

Use detector zenith to check for cached value for IceCube-centered atmosphere #46

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

afedynitch
Copy link
Collaborator

@afedynitch afedynitch commented Jun 27, 2022

In the previous version of the IceCube-centered atmosphere, the upgoing zenith angle >90 degree has been subtracted from 180 to obtain the equivalent zenith at the surface. This value (>90 degrees) has been used to store the previous value. If one requests after a calculation for 0deg, a calculation for 180deg, and then asks again for 0 degree, it will stick to 180 degrees since the last surface zenith is 0 deg in both cases. By storing the last detector zenith instead of the surface zenith, the check for the previous value will correctly detect the change and recalculate the spline.

@afedynitch afedynitch requested a review from jncots June 27, 2022 07:14
@afedynitch afedynitch self-assigned this Jun 27, 2022
@afedynitch afedynitch added this to the Major Update to 1.4 milestone Jun 27, 2022
@jncots
Copy link
Collaborator

jncots commented Jun 27, 2022

Isn't it just enough to set to 180 degree and then try to set 0 back to reproduce the problem that was solved, i.e. without setting the angle to 0 at the beginning?

@afedynitch
Copy link
Collaborator Author

Maybe yes?

Copy link
Collaborator

@jncots jncots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked - the problem is fixed.

@afedynitch afedynitch merged commit 553a0a6 into master Jun 27, 2022
@afedynitch afedynitch deleted the fix_theta_180deg_cache branch August 12, 2022 12:49
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