-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add several methods to handle decay descriptors (#331)
* add DecayChain.to_string method plus tests * style: pre-commit fixes * Update src/decaylanguage/decay/decay.py Co-authored-by: Eduardo Rodrigues <[email protected]> * style: pre-commit fixes * add example to docstring, fix typo in test * Update src/decaylanguage/decay/decay.py Co-authored-by: Eduardo Rodrigues <[email protected]> * use DaughtersDict * enforce list type * functionality to expand decay chain dicts * Update src/decaylanguage/dec/dec.py Co-authored-by: Eduardo Rodrigues <[email protected]> * Apply suggestions from code review * add DescriptorFormat class for customising the format of descriptors * Apply suggestions from code review Co-authored-by: Eduardo Rodrigues <[email protected]> * add FLATSQDALITZ to known EvtGen model names * Apply suggestions from code review * move DescriptorFormat test to tests/utils * mention implicit use of aliases in docstring for DecFileParser.expand_decay_modes * example of aliases in _expand_decay_modes * add import statement to example to satisfy doctest(?) * comply with RUF012 * use typing.Dict in typedef * one more * Update decay.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eduardo Rodrigues <[email protected]>
- Loading branch information
1 parent
d0b0576
commit 6e72286
Showing
7 changed files
with
438 additions
and
9 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
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
Oops, something went wrong.