Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix_particledecay' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangWaltenberger committed Jun 3, 2024
2 parents 0ad79f6 + 5ed832b commit 895bd36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smodels/base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ def setDecays(self, decaysDict, promptWidth, stableWidth, ignorePromptQNumbers):
if particle.totalwidth > broadWidth*particle.mass:
for decay in particle.decays:
# Check if the particle can decay to SM only:
if all(daughter.isSM for daughter in decay.daughters):
if decay is not None and all(daughter.isSM for daughter in decay.daughters):
# if all(daughter.isSM for daughter in decay.daughters):
logger.warning("Particle %s has a total width/mass = %1.2f. Some results may not be valid for broad resonances!" %(str(particle),float(particle.totalwidth/particle.mass)))
break

Expand Down

0 comments on commit 895bd36

Please sign in to comment.