There are a lot of ways to represent particles in plasmapy.particles. Like...an electron can be "electron", "e-" ,"e", "β-", and so on. Documenting all of the special cases would be difficult and the chance of an omission is rather likely. I was thinking it'd be helpful to have add Particle.aliases as a tuple that would contain the valid aliases for a particular particle.
If we add a way for users to define new particle aliases, akin to #1040, then we'd probably be better off with something mutable like a list.
Doing this might also give us a chance to clean up some of the code that handles particle aliases too.
There are a lot of ways to represent particles in
plasmapy.particles
. Like...an electron can be"electron"
,"e-"
,"e"
,"β-"
, and so on. Documenting all of the special cases would be difficult and the chance of an omission is rather likely. I was thinking it'd be helpful to have addParticle.aliases
as atuple
that would contain the valid aliases for a particular particle.If we add a way for users to define new particle aliases, akin to #1040, then we'd probably be better off with something mutable like a
list
.Doing this might also give us a chance to clean up some of the code that handles particle aliases too.