Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several methods to handle decay descriptors #331

Merged
merged 28 commits into from
Jun 29, 2023
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1c1b43a
add DecayChain.to_string method plus tests
admorris Jun 7, 2023
e6e495e
style: pre-commit fixes
pre-commit-ci[bot] Jun 7, 2023
4463eba
Update src/decaylanguage/decay/decay.py
admorris Jun 9, 2023
88164a6
style: pre-commit fixes
pre-commit-ci[bot] Jun 9, 2023
26cc605
add example to docstring, fix typo in test
admorris Jun 13, 2023
0691974
Update src/decaylanguage/decay/decay.py
admorris Jun 14, 2023
8833b58
use DaughtersDict
admorris Jun 14, 2023
be23fe6
Merge branch 'print_descriptors' of github.com:admorris/decaylanguage…
admorris Jun 14, 2023
3e46c92
enforce list type
admorris Jun 14, 2023
6a29552
functionality to expand decay chain dicts
admorris Jun 15, 2023
36f193f
Update src/decaylanguage/dec/dec.py
admorris Jun 22, 2023
43759d6
Apply suggestions from code review
eduardo-rodrigues Jun 22, 2023
abc1bfd
add DescriptorFormat class for customising the format of descriptors
admorris Jun 22, 2023
d73c0d3
Merge branch 'print_descriptors' of github.com:admorris/decaylanguage…
admorris Jun 22, 2023
058d554
Apply suggestions from code review
admorris Jun 22, 2023
a23c78d
add FLATSQDALITZ to known EvtGen model names
admorris Jun 27, 2023
f8c4eb0
Merge branch 'print_descriptors' of github.com:admorris/decaylanguage…
admorris Jun 27, 2023
4b9c113
Apply suggestions from code review
eduardo-rodrigues Jun 27, 2023
cf47af0
Merge branch 'master' into print_descriptors
admorris Jun 28, 2023
a3198bb
move DescriptorFormat test to tests/utils
admorris Jun 28, 2023
3962734
mention implicit use of aliases in docstring for DecFileParser.expand…
admorris Jun 28, 2023
901e5a4
example of aliases in _expand_decay_modes
admorris Jun 28, 2023
7031379
add import statement to example to satisfy doctest(?)
admorris Jun 28, 2023
1ba9aae
comply with RUF012
admorris Jun 28, 2023
ac5aedd
use typing.Dict in typedef
admorris Jun 28, 2023
c84198a
use typing.List in typedef
admorris Jun 28, 2023
e23cec2
one more
admorris Jun 28, 2023
4291823
Update decay.py
admorris Jun 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add import statement to example to satisfy doctest(?)
admorris committed Jun 28, 2023
commit 70313797dc1e14625c46ce354c2dc69a09c30573
1 change: 1 addition & 0 deletions src/decaylanguage/utils/utilities.py
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ class DescriptorFormat:

Examples
--------
>>> from decaylanguage import DecayMode, DecayChain
>>> dm1 = DecayMode(0.6770, "D0 pi+") # D*+
>>> dm2 = DecayMode(0.0124, "K_S0 pi0") # D0
>>> dm3 = DecayMode(0.692, "pi+ pi-") # K_S0