Add aliases
attribute for Particle
class
#1042
Labels
plasmapy.particles
Related to the plasmapy.particles subpackage
aliases
attribute for Particle
class
#1042
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.
The text was updated successfully, but these errors were encountered: