@particle_input
does not apply categorization criteria when creating a ParticleList
#2048
Labels
bug
Issues describing unexpected behavior or defects. Remember: a bug is a sign of a missing test!
plasmapy.particles
Related to the plasmapy.particles subpackage
priority: high
Issues & PRs with significant urgency and importance that should be addressed soon
Bug description
The
require
,exclude
, andany_of
parameters of@particle_input
do not get enforced when the decorated function gets passed aParticleList
.Expected outcome
When we use the
require
,any_of
, andexclude
parameters with@particle_input
, we should make them work withParticleLike
.Minimal complete verifiable example
Package versions
No response
Additional context
When the decorated parameter is named
ion
(for example),@particle_input
does indeed check that the list contains only ions.However, there's a little singular vs. plural weirdness in the error message that we could fix.
The text was updated successfully, but these errors were encountered: