-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add particlewise keyword to particle_collections.is_category * add changelog * fix precommit * remove brackets in test input * add noqa * attempt to fix decorators with particlewise=True * attempt to fix decorators with particlewise=True * fix iterable bool issue * fix is_category error in formulary/collisions/helio/collsional_analysis * np.allclose -> all(), and remove # noqa * overload is_category to improve type hints -- does this fix mypy static check? * refactor overload to use Literal[] * revert the changes to particles.decorator.verify_allowed_types * modify mypy checks * modify docstring * add info to docs about particlewise * fix changelog + typo * fix docs * fix changelog link * update changelog --------- Co-authored-by: Jeffrey Reep <reep@kahiku.local> Co-authored-by: Jeffrey Reep <reep@atrcw30.IfA.Hawaii.Edu>
- Loading branch information
1 parent
820c300
commit ca92246
Showing
6 changed files
with
128 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Added a new keyword ``particlewise`` to the method `~plasmapy.particles.particle_collections.ParticleList.is_category` of |ParticleList|, | ||
which now causes the function to return a `bool` for the whole list by default. The old functionality is still available | ||
by setting ``particlewise`` to `True`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters