-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Lorentz vectors, particle PDG, jet-clustering, oh my! -> some problems with examples #55
Comments
I don't know what "jetset" is. Do you mean
It sounds like an array of Lorentz vectors was loaded without vector.register_awkward()
Again, the tutorial is showing its age. If Particle is deprecating particle.Particle.from_string("pi+") should become next(particle.Particle.finditer("pi+")) (to bake-in the assumption that there's only one, or we're only interested in the first)? |
See also https://github.com/scikit-hep/particle#getting-started-particles and of course the extensive docstrings :-). |
Sorry, I get GitHub notifications via email, which can be out of date. On fastjet in conda-forge—you're right, it's not done: scikit-hep/fastjet#133. |
To my new pull request, I added the missing " |
I've met some problems with the examples in the "
Lorentz vectors, particle PDG, jet-clustering, oh my!
" chapter.In the "
Particle PDG
" section:particle.Particle.from_string("p~")
z_boson = particle.Particle.from_string("Z0")
and in the "
Jet clustering
" section:probable_mass = particle.Particle.from_string("pi+").mass / GeV
generate warnings in the form:
<stdin>:1: DeprecationWarning: Call to deprecated class method from_string. (This method is deprecated and will be removed from version 0.23.0. Use finditer or findall instead.) -- Deprecated since version 0.22.
In the "
Jet clustering
" section, in the "fastjet" example:good_pseudojets = pseudojets[pseudojets.pt > 0.1]
generates an error in the form:
Then I cannot "
import fastjet
" ... and when I try to "install fastjet
" (from conda-forge), I get:The text was updated successfully, but these errors were encountered: