Skip to content

Commit

Permalink
Fix back a buglet introduced recently
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jan 14, 2020
1 parent 9c96889 commit 1257ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def _add_charge_conjugate_decays(self):
def _is_not_self_conj(t):
try:
mname = t.children[0].children[0].value
if Particle.from_string(mname).is_self_conjugate:
if Particle.from_evtgen_name(mname).is_self_conjugate:
msg = """Found 'CDecay' statement for self-conjugate particle {0}. This is a bug!
Skipping creation of charge-conjugate decay Tree.""".format(mname)
warnings.warn(msg)
Expand Down

0 comments on commit 1257ad9

Please sign in to comment.