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

Classmethod for instantiating MomentumArrays with spherical uniform distributions #178

Closed
jacanchaplais opened this issue May 31, 2024 · 1 comment · Fixed by #181
Closed
Assignees
Labels
enhancement New feature or request testing

Comments

@jacanchaplais
Copy link
Owner

Would be useful for testing to sample from a uniform spherical distribution to produce a MomentumArray. Parameters should include size and maximum energy. Also, the frequency of massless particles in the output. Random seed, too, for reproducibility.

@jacanchaplais
Copy link
Owner Author

Apparently Python 3.8 doesn't support inplace matmul. Check if this is to do with numpy versioning (and if I can solve with a version bump), or I have to get rid of the inplace op.

@jacanchaplais jacanchaplais linked a pull request Jun 1, 2024 that will close this issue
jacanchaplais added a commit that referenced this issue Jun 1, 2024
jacanchaplais added a commit that referenced this issue Jun 1, 2024
…-178

Sample momentum from uniform spherical distribution #178
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant