Skip to content

Commit

Permalink
np.allclose -> all(), and remove # noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Reep authored and Jeffrey Reep committed Apr 30, 2024
1 parent d677446 commit d1967f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plasmapy/particles/particle_collections.py
Expand Up @@ -370,7 +370,7 @@ def is_category(
)
for particle in self
]
return category_list if particlewise else np.allclose(category_list, True) # noqa: FBT003
return category_list if particlewise else all(category_list)

@property
def charge_number(self) -> np.array:
Expand Down

0 comments on commit d1967f7

Please sign in to comment.