Skip to content

Commit

Permalink
Test model BTOXELNU
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Nov 17, 2023
1 parent 2103e92 commit d1fb1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions tests/data/models/model-BTOXELNU.dec
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# File for testing purposes. Contains a single decay mode with a specific model.

Decay B+
1.0 rho0 mu+ nu_mu PHOTOS BTOXELNU BCL -0.861 1.444 0.266 0.378 0.165 0.291 0.718 0.384 0.331 -0.876 1.907;
Enddecay

End
6 changes: 2 additions & 4 deletions tests/dec/test_known_decay_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_lark_file_model_list_consistency():
("BTOSLLMSEXT", [5.0, 5.0, 0.0, 1.0, 0.88, 0.227, 0.22, 0.34, 1.0, 0.0, -1.0, 0.0]),
("BTOVLNUBALL", [0.308, 36.54, -0.054, 0.288, 48.94, 1.484, -1.049, 39.52]),
("BTOXSGAMMA", [2.0]),
# ("BTOXELNU", ""),
("BTOXELNU", ["BCL", -0.861, 1.444, 0.266, 0.378, 0.165, 0.291, 0.718, 0.384, 0.331, -0.876, 1.907]),
("BTOXSLL", [4.8, 0.2, 0.0, 0.41]),
(
"BQTOLLLLHYPERCP",
Expand Down Expand Up @@ -413,9 +413,7 @@ def test_lark_file_model_list_consistency():


def test_parsing_of_all_known_models_are_tested():
assert (
len(parsed_models) == len(known_decay_models) - 1
) # subtract for now the number of models not yet tested + the number of models presently with no test available
assert len(parsed_models) == len(known_decay_models)


@pytest.mark.parametrize(("decay_model", "expected_model_parameters"), parsed_models)
Expand Down

0 comments on commit d1fb1a1

Please sign in to comment.