Henry Schreiner
Henry Schreiner
Note: A few more old-CUDA workarounds are left over: https://github.com/GooFit/GooFit/blob/d877226bbe7e8dfb56685b275009b2ed4b882327/python/CMakeLists.txt#L71-L73
My immediate reaction is a) it's easier to convert to int than it is to find and convert to PDGID, b) PDGID provides extra functionality, and duck types like an...
Also, `int(p)` is a good way to get an integer particle number, IIRC, and is one less character than `p.pdgid`.
> Perhaps you heard somewhere that composition is better than inheritance This was partially a historical result, rather than a conscious design. @eduardo-rodrigues mostly wrote PDGID, and I mostly wrote...
By they way, snippets or pointers to Numba code would be very interesting; it might help us decide how to support Numba more natively.
PS: `int(p)` produces an `int`, and `PDGID(p)` produces a PDGID. `p.pdgid` is just a shortcut for `PDGID(p)`. Second reminder: you can also make Particles that do not have a valid...
If you are Python3 only, then that tool is built in to Python, actually: ```python import functools @functools.lrucache def pdgid_to_mass(pidid): ... ``` https://docs.python.org/3/library/functools.html#functools.lru_cache Anyway, `Particle.from_pdgid` will be tricky to do...
I'll try to look into this soon, but what is the path forward for decaylanguage if this is removed? Half of decaylanuage (and literally the thing that gives it it's...
> So I think it is a good choice to not expose the DB to the user as it is now. The ability to add particles, modify particles, or load...
Different issue but possibly similar fix: ```python f"{repr(x)}" ``` Could be converted to: ```python f"{x!r}" ``` These happen to be common from `"{0}".format(repr(x))` conversions.