Skip to content

Commit

Permalink
Decay model parsing bug fix and preparation of release 0.11.3 (#174)
Browse files Browse the repository at this point in the history
* Fix decay model ordering issue for Lark parsing

* CHANGELOG update for new patch release
  • Loading branch information
eduardo-rodrigues authored Jul 28, 2021
1 parent 3ac7853 commit 2900bba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Version 0.11.3 (2021-07-28)

* Parsing of decay files (aka .dec files):
- Fix to parsing of a couple of decay models (subtletly of Lark parsing priorities).
* Miscellaneous:
- CI updates.

## Version 0.11.2 (2021-06-24)

* Universal representation of decay chains:
Expand Down
2 changes: 1 addition & 1 deletion src/decaylanguage/data/decfile.lark
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ _NEWLINE: ( /\r?\n[\t ]*/ | COMMENT )
_SEMICOLON: /;/

// We must set priorities here to use lalr - match model name above label, and label above something else
MODEL_NAME.2 : "BaryonPCR"|"BCL"|"BGL"|"BT02PI_CP_ISO"|"BTO3PI_CP"|"BTOSLLALI"|"BTOSLLBALL"|"BTOXSGAMMA"|"BTOXSLL"|"CB3PI-MPP"|"CB3PI-P00"|"D_DALITZ"|"ETAPRIME_DALITZ"|"ETA_DALITZ"|"ETA_FULLDALITZ"|"ETA_PI0DALITZ"|"FLATQ2"|"GENERIC_DALITZ"|"GOITY_ROBERTS"|"HELAMP"|"HQET"|"HQET2"|"ISGW"|"ISGW2"|"LbAmpGen"|"LLSW"|"MELIKHOV"|"OMEGA_DALITZ"|"PARTWAVE"|"PHSP"|"PI0_DALITZ"|"PROPSLPOLE"|"PVV_CPLH"|"PYCONT"|"PYTHIA"|"SLBKPOLE"|"SLN"|"SLPOLE"|"SSD_CP"|"SSD_DirectCP"|"SSS_CP"|"SSS_CP_PNG"|"SSS_CPT"|"STS_CP"|"STS"|"SVP_CP"|"SVP_HELAMP"|"SVP"|"SVS_CP_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VS_PWAVE"|"YMSTOYNSPIPICLEO"

LABEL : /[a-zA-Z0-9\/\-+*_()']+/
COMMENT : /[#][^\n]*/
Expand Down
4 changes: 2 additions & 2 deletions src/decaylanguage/dec/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class PhotosEnum(IntEnum):
"GENERIC_DALITZ",
"GOITY_ROBERTS",
"HELAMP",
"HQET",
"HQET2",
"ISGW",
"HQET",
"ISGW2",
"ISGW",
"LbAmpGen",
"LLSW",
"MELIKHOV",
Expand Down

0 comments on commit 2900bba

Please sign in to comment.