Skip to content

Commit

Permalink
DX: test formulate_breit_wigner_with_form_factor()
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 30, 2025
1 parent 7c934fb commit bac4930
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ coverage:
status:
project:
default:
target: 60%
target: 65%
threshold: 1%
base: auto
if_no_uploads: error
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ commands = [
[
"pytest",
{replace = "posargs", extend = true},
"--cov-fail-under=60",
"--cov-fail-under=65",
"--cov-report=html",
"--cov-report=xml",
"--cov=ampform_dpd",
Expand Down
6 changes: 6 additions & 0 deletions tests/test_dpd_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from ampform_dpd import DalitzPlotDecompositionBuilder
from ampform_dpd.adapter.qrules import normalize_state_ids, to_three_body_decay
from ampform_dpd.dynamics.builder import formulate_breit_wigner_with_form_factor

if TYPE_CHECKING:
from qrules.transition import ReactionInfo
Expand All @@ -25,6 +26,11 @@ def test_all_subsystems(
builder = DalitzPlotDecompositionBuilder(
decay, min_ls=min_ls, all_subsystems=all_subsystems
)
if jpsi2pksigma_reaction.formalism == "canonical-helicity":
for chain in builder.decay.chains:
builder.dynamics_choices.register_builder(
chain, formulate_breit_wigner_with_form_factor
)
if all_subsystems:
with pytest.warns(
UserWarning,
Expand Down

0 comments on commit bac4930

Please sign in to comment.