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
Add numpy/tensor generation #18
Conversation
Still not working.
I'm happy now. If you agree, I fix the docs and we're ready to release 1.0.0. |
Open question, the way we implemented things now, I am not sure about the caching anymore. from phasespace import Particle
B0_MASS = 5279.58
KSTARZ_MASS = 895.81
PION_MASS = 139.57018
KAON_MASS = 493.677
pion = Particle('pi+', PION_MASS)
kaon = Particle('K+', KAON_MASS)
kstar = Particle('K*', KSTARZ_MASS).set_children(pion, kaon)
gamma = Particle('gamma', 0)
bz = Particle('B0', B0_MASS).set_children(kstar, gamma)
for i in range(10):
weights, particles = bz.generate(n_events=1000)
...
(do something with weights and particles)
... Does this actually cache the graph? Since in |
You're right, it does not yet, wanted to get things working again first, which is good now. I'll implement it, it should be very simple. |
Great! Other than that it's working, and docs should be up to date! |
Good! I'll tackle it tomorrow |
Addresses #15.
Still missing, how to deal with
boost_to
in the iterator case.