Skip to content

Commit

Permalink
FIX: set non-negative assumption on masses (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Apr 24, 2024
1 parent e8be651 commit 1a084c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ampform_dpd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def formulate_non_resonant(

def create_mass_symbol_mapping(decay: ThreeBodyDecay) -> dict[sp.Symbol, float]:
return {
sp.Symbol(f"m{i}"): decay.states[i].mass
sp.Symbol(f"m{i}", nonnegative=True): decay.states[i].mass
for i in sorted(decay.states) # ensure that dict keys are sorted by state ID
}

Expand Down

0 comments on commit 1a084c7

Please sign in to comment.