You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To write tests for lepton number and baryon number
Is the idea to check with Gell-Mann–Nishijima? Particle instances in QRules only carry quantum numbers, not data like quark content, and they can only be constructed if their numbers agree with NNG. It is probably too strict to implement as a runtime check for the particle package, but we could write an NNG check that is run through the test suite, e.g. for PDG particles.
I was not originally thinking about that, as it would require several new quantum numbers to be added to the code here in Particle. That is not to say that it is totally wild. But it would require some (more) work. What do you think?
In the first instance one would add lepton and baryon numbers for the particles, and would take it from there.
as it would require several new quantum numbers to be added to the code here in Particle
If the check is implemented in a test, the quantum numbers can be computed from existing data in a Particle instance, see code here. Not sure if it works for all definitions, but should work for most.
As per discussion in #494 with @eduardo-rodrigues
c.c. @eduardo-rodrigues @redeboer
The text was updated successfully, but these errors were encountered: