bmad-sim / AtomicAndPhysicalConstants.jl

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

setunits() output has bad `mass` line #39

Open DavidSagan opened 2 weeks ago

DavidSagan commented 2 weeks ago
julia> setunits()
mass:    "eV/c^2"    where 1.0 eV/c^2               = 1 amu    <---- This is wrong conversion between eV/c^2 to amu !!
length:  "m"         where 1.0 m                    = 1 m
time:    "s"         where 1.0 s                    = 1 s
energy:  "eV"        where 1.0 eV                   = 1 eV
charge:  "e"         where 1.0 e                    = 1 e
rot4te commented 2 weeks ago

When I last spoke to Dan, he was working on this and a number of other issues with setunits(). Not sure what the status is right now.

dtabell commented 1 week ago

I think this is just a typo in printing the mass unit at the end of that line. This is fixed in #35 .