bmad-sim / AtomicAndPhysicalConstants.jl

Julia package for handling particle identification in simulations.
https://bmad-sim.github.io/AtomicAndPhysicalConstants.jl/dev
MIT License
0 stars 0 forks source link

Need full_name() function #42

Open DavidSagan opened 2 months ago

DavidSagan commented 2 months ago

Need a function that will return the "full" name string with isotope and charge state included. For example, full_name(Particle("He",2)) should return "He++".

It would be nice for full_name to have the option to return the unicode string with appropriate subscripts and superscripts. For example, return "³He" instead of "#3He"

rot4te commented 1 month ago

I'm going to implement this with the existing ascii format, and then I'll figure out the unicode.

DavidSagan commented 1 month ago

Note: full_name not yet exported.

rot4te commented 1 month ago

It's exported now, still working on unicode implementation