Skip to content

Fix unit handling in muon ring_completeness#2197

Merged
maxnoe merged 1 commit into
masterfrom
histogram_units
Jan 9, 2023
Merged

Fix unit handling in muon ring_completeness#2197
maxnoe merged 1 commit into
masterfrom
histogram_units

Conversation

@maxnoe
Copy link
Copy Markdown
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