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

Vectorize NeutrinoDecay #105

Merged
merged 3 commits into from
Sep 13, 2021
Merged

Vectorize NeutrinoDecay #105

merged 3 commits into from
Sep 13, 2021

Conversation

sgriswol
Copy link
Contributor

These changes compute the NeutrinoDecay probabilities using numpy broadcasting. It should run considerably faster. Running Flavor_XForm.ipynb locally, the cells associated with NeutrinoDecay ran 86 times faster (evaluated by ipython timeit magic command).

Fixes #31, closes #34

Copy link
Contributor

@sybenzvi sybenzvi left a comment

Choose a reason for hiding this comment

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

Verified that the changes do not affect the output of the Flavor transformation.

@sybenzvi sybenzvi merged commit 7bd54a4 into main Sep 13, 2021
@sybenzvi sybenzvi deleted the vec-nu-decay branch September 13, 2021 21:23
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.

Vectorize NeutrinoDecay calculation in flavor transformation module
2 participants