bmad-sim / AtomicAndPhysicalConstants.jl

Julia package for handling particle identification in simulations.
MIT License
0 stars 1 forks source link

Particle("He+") not handled correctly. #38

Open DavidSagan opened 2 weeks ago

DavidSagan commented 2 weeks ago
julia> t=Particle("He+")
Particle("He+", 0, 3.7294220920055428e9, 1.97463587041161e-15, 0.0)

It should be:

Particle("He", 1, 3.7289110930555425e9, 1.6455298920096748e-15, 0.0)

Also not handled correctly is Particle("#3He")

rot4te commented 2 weeks ago

I've fixed and pushed the issue with the charge; that was just an oversight in the regex. I'm less certain what the issue is with the spin, but I'll figure it out. I assume that's what you refer to with #3He