Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Commit

Permalink
test: improve test on link dynamics->parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Nov 26, 2020
1 parent ad7e2d7 commit b0d33a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/unit/amplitude/test_yaml_helicity.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,16 @@ def get_parameter(parameter_name: str) -> dict:
j_psi = dynamics["J/psi(1S)"]
assert j_psi["Type"] == "NonDynamic"
assert j_psi["FormFactor"]["Type"] == "BlattWeisskopf"
assert j_psi["FormFactor"]["MesonRadius"] == "MesonRadius_J/psi(1S)"
assert get_parameter("MesonRadius_J/psi(1S)")["Value"] == 1.0
assert get_parameter(j_psi["FormFactor"]["MesonRadius"])["Value"] == 1.0

f0_980 = dynamics.get("f(0)(980)", None)
if f0_980:
assert f0_980["Type"] == "RelativisticBreitWigner"
assert f0_980["FormFactor"]["Type"] == "BlattWeisskopf"
assert f0_980["FormFactor"]["MesonRadius"] == "MesonRadius_f(0)(980)"
assert get_parameter("MesonRadius_f(0)(980)")["Value"] == 1.0
assert (
get_parameter(f0_980["FormFactor"]["MesonRadius"])["Value"] == 1.0
)


def test_intensity_section(imported_dict):
Expand Down

0 comments on commit b0d33a8

Please sign in to comment.