Eduardo Rodrigues

Results 80 comments of Eduardo Rodrigues

Thanks for bringing this up. I would be curious to see how you are using `Particle` with Numba, and what are issues part from this `PDGID` to ìnt` conversion, at...

> Also, `int(p)` is a good way to get an integer particle number, IIRC, and is one less character than `p.pdgid`. Yes, that's right.

> Ok, I get why Particle does not derive from PDGID, but then I find it weird to allow `int(Particle(...))`. You want to teach people to use `int(Particle(...).pdgid)` then. Allowing...

As you say @HDembinski , """ ... particle is not designed to process large arrays of PIDs ...",like "take an array of PIDs and give me a new array with...

> PS: @eduardo-rodrigues , if you are interested in enabling all PDGID's methods on particle, but without turning Particles also into ints and causing Particle() + 1 to "work" but...

> Ok, I get why Particle does not derive from PDGID, but then I find it weird to allow int(Particle(...)). You want to teach people to use int(Particle(...).pdgid) then. Allowing...

@HDembinski, on your numba example below: for practical purposes would you not get a nice speedup using a case such as from cachetools import cached, LFUCache cacher = cached(cache=LFUCache(maxsize=64)) @cacher...

@henryiii, I will get to this soon. Where would you put such a template, say a file `TEMPLATE_UserDefinedParticles.fwf`?

This has been rather low priority but I should come back to it soon. For now let me add some info on how to create user-defined particles on the fly:...

Quick word to say that I'm working on a new "master data file" with structure in it as well. So this is not forgotten and in fact being dealt with.