-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure neutron, proton and their anti-particles compare equal (#622)
* Make sure neutron, proton and their anti-particles compare equal in different representations * Add special casing for from_name * Add more tests for Particle.__hash__ * Return preferred pdgid in from_nucleus_info * Fix test docstring * Test commutation * Apply suggestions from code review * Fix indentation * Apply suggestions from code review * Fix docstring * Docstring fix in test_particle.py * style: pre-commit fixes --------- Co-authored-by: Eduardo Rodrigues <eduardo.rodrigues@cern.ch> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5301d1b
commit 4bd0784
Showing
2 changed files
with
119 additions
and
3 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
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