decaylanguage 0.3.2__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/CHANGELOG.md +6 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/PKG-INFO +8 -2
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/README.md +2 -2
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/_version.py +1 -1
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/dec/dec.py +16 -2
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage.egg-info/PKG-INFO +8 -2
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage.egg-info/requires.txt +1 -1
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/setup.py +1 -1
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/dec/test_dec.py +4 -4
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/.coveragerc +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/.editorconfig +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/AUTHORS.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/CONTRIBUTING.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/LICENSE +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/MANIFEST.in +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/__main__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/DECAY_BELLE.DEC +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/DECAY_CLASSIC.DEC +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/DECAY_LHCB.DEC +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticles.csv +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticles.fwf +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticlesLatex.csv +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/README.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/WorkingOutModel.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/ampgen.lark +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/decfile.lark +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/desktop.ini +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/particle.lark +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/specifics.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/dec/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/dec/decparser - Copy.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/dec/decparser.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/dec/enums.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/decay/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/decay/decay.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/decay/decaychain-wip.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/decay/viewer.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/ampgen2goofit.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/ampgentransform.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/amplitudechain.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/decay.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/modeling/goofit.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/utils/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/utils/errors.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/utils/utilities.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage.egg-info/SOURCES.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage.egg-info/dependency_links.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage.egg-info/top_level.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/authors.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/changelog.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/conf.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/contributing.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/index.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/installation.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/readme.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/reference/decaylanguage.decay.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/reference/decaylanguage.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/reference/index.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/requirements.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/spelling_wordlist.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/docs/usage.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dst_stable-D0-and-D+.pdf +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dst_stable-D0-and-D+.png +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dstbar_stable-D0bar-and-D-.pdf +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dstbar_stable-D0bar-and-D-.png +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayLanguage.ink.svg +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayLanguage.pdf +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayLanguage.png +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayLanguage.svg +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/models/DtoKpipipi_v2.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/AmpGen2GooFit D2K3p.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/DecReader.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/DecayChainViewer.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/DecayLanguageDemo.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/DtoKpipipi_v2.cu +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/ExampleDecFileParsingWithLark.ipynb +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/decaylanguage +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/notebooks/simple_model.txt +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/setup.cfg +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/__init__.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/README.rst +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/defs-aliases-chargeconj.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/duplicate-decays.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bc2BsPi_Bs2KK.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2DDst_Ds2DmPi0.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2DMuNu.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2DmTauNu_Dm23PiPi0_Tau2MuNu.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2Dst0X_D02KPi.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2DstDst.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Upsilon4S2B0B0bar.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Xicc2XicPiPi.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_example_Dst.dec +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/decay/test_decay.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/decay/test_viewer.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/output/DtoKpipipi_v2.cu +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/test_convert.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/test_dec_full.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/test_decaylanguage.py +0 -0
- {decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/test_goofit.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: decaylanguage
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: A language to describe particle decays, and tools to work with them.
|
|
5
5
|
Home-page: https://github.com/scikit-hep/decaylanguage
|
|
6
6
|
Author: Henry Fredrick Schreiner III
|
|
@@ -125,7 +125,7 @@ Description:
|
|
|
125
125
|
DecayChainViewer(d) # works in a notebook
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-

|
|
128
|
+

|
|
129
129
|
|
|
130
130
|
The actual graph is available as
|
|
131
131
|
|
|
@@ -195,6 +195,12 @@ Description:
|
|
|
195
195
|
|
|
196
196
|
# Changelog
|
|
197
197
|
|
|
198
|
+
## Version 0.4.0 (2019-09-02)
|
|
199
|
+
|
|
200
|
+
* Package dependent on ``Particle`` version 0.6.0.
|
|
201
|
+
Otherwise identical to version 0.3.2.
|
|
202
|
+
|
|
203
|
+
|
|
198
204
|
## Version 0.3.2 (2019-08-29)
|
|
199
205
|
|
|
200
206
|
* Parsing of decay files (aka .dec files):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](
|
|
1
|
+
[](https://decaylanguage.readthedocs.io/en/latest/)
|
|
2
2
|
|
|
3
3
|
## DecayLanguage: describe, manipulate and convert particle decays
|
|
4
4
|
|
|
@@ -127,7 +127,7 @@ d = parser.build_decay_chain('D*+', stable_particles=['D+', 'D0'])
|
|
|
127
127
|
DecayChainViewer(d) # works in a notebook
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-

|
|
130
|
+

|
|
131
131
|
|
|
132
132
|
The actual graph is available as
|
|
133
133
|
|
|
@@ -1140,16 +1140,30 @@ def get_jetset_definitions(parsed_file):
|
|
|
1140
1140
|
\( (?P<pnumber> \d+ ) \) # parameter number in ()
|
|
1141
1141
|
""", re.VERBOSE)
|
|
1142
1142
|
|
|
1143
|
+
def to_int_or_float(n):
|
|
1144
|
+
"""
|
|
1145
|
+
Trivial helper function to convert the parsed (as strings)
|
|
1146
|
+
JETSET parameters into what they are, namely integers or floats.
|
|
1147
|
+
"""
|
|
1148
|
+
try:
|
|
1149
|
+
return int(n)
|
|
1150
|
+
except ValueError:
|
|
1151
|
+
try:
|
|
1152
|
+
return float(n)
|
|
1153
|
+
except:
|
|
1154
|
+
# pass though non-numbers unchanged
|
|
1155
|
+
return n
|
|
1156
|
+
|
|
1143
1157
|
try:
|
|
1144
1158
|
dict_params = {}
|
|
1145
1159
|
for tree in parsed_file.find_data('jetset_def'):
|
|
1146
1160
|
param = get_jetsetpar.match(tree.children[0].value).groupdict()
|
|
1147
1161
|
try:
|
|
1148
1162
|
dict_params[param['pname']].update(
|
|
1149
|
-
{int(param['pnumber']):tree.children[1].value})
|
|
1163
|
+
{int(param['pnumber']):to_int_or_float(tree.children[1].value)})
|
|
1150
1164
|
except KeyError:
|
|
1151
1165
|
dict_params[param['pname']] =\
|
|
1152
|
-
{int(param['pnumber']):tree.children[1].value}
|
|
1166
|
+
{int(param['pnumber']):to_int_or_float(tree.children[1].value)}
|
|
1153
1167
|
return dict_params
|
|
1154
1168
|
except:
|
|
1155
1169
|
RuntimeError("Input parsed file does not seem to have the expected structure.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: decaylanguage
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: A language to describe particle decays, and tools to work with them.
|
|
5
5
|
Home-page: https://github.com/scikit-hep/decaylanguage
|
|
6
6
|
Author: Henry Fredrick Schreiner III
|
|
@@ -125,7 +125,7 @@ Description:
|
|
|
125
125
|
DecayChainViewer(d) # works in a notebook
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-

|
|
128
|
+

|
|
129
129
|
|
|
130
130
|
The actual graph is available as
|
|
131
131
|
|
|
@@ -195,6 +195,12 @@ Description:
|
|
|
195
195
|
|
|
196
196
|
# Changelog
|
|
197
197
|
|
|
198
|
+
## Version 0.4.0 (2019-09-02)
|
|
199
|
+
|
|
200
|
+
* Package dependent on ``Particle`` version 0.6.0.
|
|
201
|
+
Otherwise identical to version 0.3.2.
|
|
202
|
+
|
|
203
|
+
|
|
198
204
|
## Version 0.3.2 (2019-08-29)
|
|
199
205
|
|
|
200
206
|
* Parsing of decay files (aka .dec files):
|
|
@@ -143,10 +143,10 @@ def test_jetset_definitions_parsing():
|
|
|
143
143
|
p = DecFileParser(DIR / '../data/defs-aliases-chargeconj.dec')
|
|
144
144
|
p.parse()
|
|
145
145
|
|
|
146
|
-
assert p.dict_jetset_definitions() == {'MSTU': {1:
|
|
147
|
-
'PARU': {11:
|
|
148
|
-
'MSTJ': {26:
|
|
149
|
-
'PARJ': {21:
|
|
146
|
+
assert p.dict_jetset_definitions() == {'MSTU': {1: 0, 2: 0},
|
|
147
|
+
'PARU': {11: 0.001},
|
|
148
|
+
'MSTJ': {26: 0},
|
|
149
|
+
'PARJ': {21: 0.36}}
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
def test_list_lineshape_definitions():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticles.csv
RENAMED
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticles.fwf
RENAMED
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/decaylanguage/data/MintDalitzSpecialParticlesLatex.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dstbar_stable-D0bar-and-D-.pdf
RENAMED
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/images/DecayChain_Dstbar_stable-D0bar-and-D-.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{decaylanguage-0.3.2 → decaylanguage-0.4.0}/tests/data/test_Bd2DmTauNu_Dm23PiPi0_Tau2MuNu.dec
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|