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

Fix unit handling in muon ring_completeness #2197

Merged
merged 1 commit into from
Jan 9, 2023
Merged

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Jan 9, 2023

Astropy 5.2.1 now checks that arguments to np.histogram are compatible.

We had code that passes something like np.histogram([1, 2, 3] * u.rad, range=[-np.pi, np.pi]), which now raises an error.

fixes #2196

@maxnoe maxnoe changed the title Fix unit handling in muon ring_completeness, fixes #2196 Fix unit handling in muon ring_completeness Jan 9, 2023
@maxnoe maxnoe merged commit 9a83547 into master Jan 9, 2023
@maxnoe maxnoe deleted the histogram_units branch January 9, 2023 12:48
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.

CI failing due to astropy quantity change in 5.2.1
3 participants