Skip to content

Commit

Permalink
Test the new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jan 9, 2024
1 parent c979065 commit afa6449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/data/defs-aliases-chargeconj.dec
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ LSNONRELBW rho0
BlattWeisskopf rho0 3.0
IncludeBirthFactor rho0 no
IncludeDecayFactor rho0 yes
# Redefined particles only need to specify the mass, and the width is optional
Alias MyRho0 rho0
Particle MyRho0 0.8

# Pythia 8 parameter modifications
# (Very important that there are no blank spaces in the parameter string!)
Expand Down
3 changes: 2 additions & 1 deletion tests/dec/test_dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_aliases_parsing():
p = DecFileParser(DIR / "../data/defs-aliases-chargeconj.dec")
p.parse()

assert len(p.dict_aliases()) == 135
assert len(p.dict_aliases()) == 136


def test_model_aliases_parsing():
Expand Down Expand Up @@ -197,6 +197,7 @@ def test_particle_property_definitions():
"MyK*0": {"mass": 0.892, "width": 0.051},
"MyPhi": {"mass": 1.02, "width": 0.004},
"rho0": {"mass": 0.8, "width": 0.2},
"MyRho0": {"mass": 0.8, "width": 149.1},
}


Expand Down

0 comments on commit afa6449

Please sign in to comment.